Skip to content

Commit

Permalink
modify troubleshooting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
salonichf5 committed Jun 14, 2024
1 parent 3fafa2e commit 328f364
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 45 deletions.
38 changes: 19 additions & 19 deletions examples/cafe-example/cafe-routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ spec:
backendRefs:
- name: coffee
port: 80
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: tea
spec:
parentRefs:
- name: gateway
sectionName: http
hostnames:
- "cafe.example.com"
rules:
- matches:
- path:
type: Exact
value: /tea
backendRefs:
- name: tea
port: 80
# ---
# apiVersion: gateway.networking.k8s.io/v1
# kind: HTTPRoute
# metadata:
# name: tea
# spec:
# parentRefs:
# - name: gateway
# sectionName: http
# hostnames:
# - "cafe.example.com"
# rules:
# - matches:
# - path:
# type: Exact
# value: /tea
# backendRefs:
# - name: tea
# port: 80
6 changes: 1 addition & 5 deletions internal/mode/static/telemetry/data_attributes_generated.go
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@

package telemetry

/*
This is a generated file. DO NOT EDIT.
*/

import (
"go.opentelemetry.io/otel/attribute"


ngxTelemetry "github.com/nginxinc/telemetry-exporter/pkg/telemetry"

)

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


attrs = append(attrs, attribute.String("ImageSource", d.ImageSource))
attrs = append(attrs, d.Data.Attributes()...)
attrs = append(attrs, attribute.StringSlice("FlagNames", d.FlagNames))
attrs = append(attrs, attribute.StringSlice("FlagValues", d.FlagValues))
attrs = append(attrs, d.NGFResourceCounts.Attributes()...)
attrs = append(attrs, attribute.Int64("NGFReplicaCount", d.NGFReplicaCount))


return attrs
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@

package telemetry

/*
This is a generated file. DO NOT EDIT.
*/

import (
"go.opentelemetry.io/otel/attribute"


ngxTelemetry "github.com/nginxinc/telemetry-exporter/pkg/telemetry"

)

func (d *NGFResourceCounts) Attributes() []attribute.KeyValue {
Expand All @@ -23,7 +21,6 @@ func (d *NGFResourceCounts) Attributes() []attribute.KeyValue {
attrs = append(attrs, attribute.Int64("EndpointCount", d.EndpointCount))
attrs = append(attrs, attribute.Int64("GRPCRouteCount", d.GRPCRouteCount))
attrs = append(attrs, attribute.Int64("BackendTLSPolicyCount", d.BackendTLSPolicyCount))


return attrs
}
Expand Down
Loading

0 comments on commit 328f364

Please sign in to comment.