GoogleCloudPlatform / ops-agent

Apache License 2.0
141 stars 68 forks source link

Feature request: statsd and prometheus receivers #454

Open njLT opened 2 years ago

njLT commented 2 years ago

The statsd and prometheus receivers are available in the opentelemetry-collector-contrib repository. We're currently using the legacy agent for statsd integration on GCP and were currently looking for a way to get some other metrics exposed in the prometheus format to stackdriver as well.

adrianlzt commented 1 year ago

Supported enabling a special flag (for v2.23.0):

# /etc/systemd/system/google-cloud-ops-agent-opentelemetry-collector.service.d/override.conf
[Service]
Environment="UNSUPPORTED_BETA_PROMETHEUS_RECEIVER=enabled"

Check this example: https://github.com/GoogleCloudPlatform/ops-agent/blob/2.23.0/confgenerator/testdata/valid/linux/metrics-receiver_prometheus/input.yaml