Skip to content

Commit

Permalink
add collector self-observability metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Dec 18, 2024
1 parent 366ba63 commit 5ab65d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcp/opentelemetry-demo-features.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ opentelemetry-collector:
processors: [k8sattributes, memory_limiter, resourcedetection, resource, resource/gcp_project_id, batch]
exporters: [otlphttp/gcp_auth]
metrics/otlp:
receivers: [otlp]
receivers: [otlp, prometheus]
processors: [k8sattributes, memory_limiter, filter/too_frequent, resourcedetection, transform/collision, resource, resource/gcp_project_id, batch]
exporters: [otlphttp/gcp_auth_staging]
{{ end }}
5 changes: 4 additions & 1 deletion gcp/opentelemetry-demo-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ opentelemetry-collector:
otlphttp/prometheus: null

service:
telemetry:
metrics:
address: ${env:MY_POD_IP}:8888
pipelines:
logs:
processors: [resourcedetection, resource, memory_limiter, batch]
Expand All @@ -101,6 +104,6 @@ opentelemetry-collector:
processors: [memory_limiter, resourcedetection, resource, batch]
exporters: [googlecloud] # spanmetrics disabled
metrics:
receivers: [otlp] # spanmetrics disabled
receivers: [otlp, prometheus] # spanmetrics disabled
processors: [memory_limiter, filter/too_frequent, resourcedetection, transform/collision, resource, batch]
exporters: [googlemanagedprometheus]

0 comments on commit 5ab65d2

Please sign in to comment.