Skip to content

Commit 328f364

Browse files
committed
modify troubleshooting docs
1 parent 3fafa2e commit 328f364

File tree

4 files changed

+336
-45
lines changed

4 files changed

+336
-45
lines changed

examples/cafe-example/cafe-routes.yaml

+19-19
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ spec:
1616
backendRefs:
1717
- name: coffee
1818
port: 80
19-
---
20-
apiVersion: gateway.networking.k8s.io/v1
21-
kind: HTTPRoute
22-
metadata:
23-
name: tea
24-
spec:
25-
parentRefs:
26-
- name: gateway
27-
sectionName: http
28-
hostnames:
29-
- "cafe.example.com"
30-
rules:
31-
- matches:
32-
- path:
33-
type: Exact
34-
value: /tea
35-
backendRefs:
36-
- name: tea
37-
port: 80
19+
# ---
20+
# apiVersion: gateway.networking.k8s.io/v1
21+
# kind: HTTPRoute
22+
# metadata:
23+
# name: tea
24+
# spec:
25+
# parentRefs:
26+
# - name: gateway
27+
# sectionName: http
28+
# hostnames:
29+
# - "cafe.example.com"
30+
# rules:
31+
# - matches:
32+
# - path:
33+
# type: Exact
34+
# value: /tea
35+
# backendRefs:
36+
# - name: tea
37+
# port: 80

internal/mode/static/telemetry/data_attributes_generated.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
21
package telemetry
2+
33
/*
44
This is a generated file. DO NOT EDIT.
55
*/
66

77
import (
88
"go.opentelemetry.io/otel/attribute"
99

10-
1110
ngxTelemetry "github.com/nginxinc/telemetry-exporter/pkg/telemetry"
12-
1311
)
1412

1513
func (d *Data) Attributes() []attribute.KeyValue {
1614
var attrs []attribute.KeyValue
1715
attrs = append(attrs, attribute.String("dataType", "ngf-product-telemetry"))
18-
1916

2017
attrs = append(attrs, attribute.String("ImageSource", d.ImageSource))
2118
attrs = append(attrs, d.Data.Attributes()...)
2219
attrs = append(attrs, attribute.StringSlice("FlagNames", d.FlagNames))
2320
attrs = append(attrs, attribute.StringSlice("FlagValues", d.FlagValues))
2421
attrs = append(attrs, d.NGFResourceCounts.Attributes()...)
2522
attrs = append(attrs, attribute.Int64("NGFReplicaCount", d.NGFReplicaCount))
26-
2723

2824
return attrs
2925
}

internal/mode/static/telemetry/ngfresourcecounts_attributes_generated.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
21
package telemetry
2+
33
/*
44
This is a generated file. DO NOT EDIT.
55
*/
66

77
import (
88
"go.opentelemetry.io/otel/attribute"
99

10-
1110
ngxTelemetry "github.com/nginxinc/telemetry-exporter/pkg/telemetry"
12-
1311
)
1412

1513
func (d *NGFResourceCounts) Attributes() []attribute.KeyValue {
@@ -23,7 +21,6 @@ func (d *NGFResourceCounts) Attributes() []attribute.KeyValue {
2321
attrs = append(attrs, attribute.Int64("EndpointCount", d.EndpointCount))
2422
attrs = append(attrs, attribute.Int64("GRPCRouteCount", d.GRPCRouteCount))
2523
attrs = append(attrs, attribute.Int64("BackendTLSPolicyCount", d.BackendTLSPolicyCount))
26-
2724

2825
return attrs
2926
}

0 commit comments

Comments
 (0)