PgDog can export metrics to Datadog via two mechanisms:
- OpenMetrics collector
- OTLP (OTEL) ingestion endpoint
Both export the same metrics, at a configurable interval of your choice.
PgDog exports a lot of metrics via an OpenMetrics endpoint. You can enable the endpoint
by specifying the port number in pgdog.toml:
# pgdog.toml
[general]
openmetrics_port = 9090The endpoint will run on http://0.0.0.0:9090. A sample config is included in openmetrics.d/conf.yaml.
PgDog can push OTEL metrics to a configurable endpoint. Datadog supports ingesting metrics this way and we support it natively:
# pgdog.toml
[otel]
datadog_api_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
endpoint = "https://otlp.us5.datadoghq.com/v1/metrics"By default, PgDog will push metrics to the endpoint every 10 seconds.
We have a pre-build Datadog dashboard you can import directly into your stack. See dashboard.json.