You can configure Prometheus in CDW to push its metrics to an external endpoint, such as Prometheus, Grafana, Thanos, or some other endpoint.
For information about other receivers, see Prometheus documentation: Compatible senders and receivers. In this procedure you add a configuration snippet that triggers a Prometheus Remote Write. Prometheus then sends HTTP POST requests to the Remote Write endpoint to forward your metrics.
CDW must run in an AWS or Azure environment.
-
In Environments, locate your CDW environment.
-
Click ,
and select .
-
In Metrics Forwarding Configuration, add the config and authentication methods for your endpoint in YAML format.
For example:
remote_write:
- url: https://aps-workspaces.us-west-2.amazonaws.com/workspaces/ws-3e8fcedb-6727-4912-82aa-f05a8be25fe4/api/v1/remote_write
sigv4:
region: us-west-2
name: prometheus_remote_write
queue_config:
max_samples_per_send: 1000
max_shards: 200
capacity: 2500
-
Click Apply Changes.
This action updates the config map. The Prometheus pod restarts, so the new config takes effect.