Install the Prometheus Metrics app
Setup
Follow the instructions in Observe apps to install the Prometheus Metrics app.
Configure the data connection
After the Prometheus Metrics app is installed, go to the Connections tab to configure a data connection between the Prometheus Metrics app and the Observe platform.
- Go to the Connections tab in the Prometheus Metrics app.
- Click Get started next to Create Prometheus Metrics Token.
- Provide a name and description for the ingest token, then click Continue.
- Copy the ingest token to a secure location, then verify you have done so, then click Continue.
- Complete the setup instructions provided in the UI, and also provided below for convenience. Click Close when you are done.
Prometheus remote write
To push metrics directly to Observe via Prometheus's remote write, add the following configuration to your prometheus.yml:
remote_write:
- url: https://146268791759.collect.observeinc.com/v1/prometheus
bearer_token: ds1G74yeZFhMAOPm6n9j:uybrMGC8HDLvDwuax9KmfFfRuk5egJ71
remote_timeout: "30s"
queue_config:
min_backoff: "1s"
max_backoff: "30s"
max_shards: 20
max_samples_per_send: 5000
capacity: 15000Observe Kustomize manifest
If you're monitoring a Kuberentes environment, another alternative is to use the Observe Kustomize Manifest to install all the necessary components for collecting telemetry data from Kubernetes. With this approach, you can configure Metric Discovery to have the observe kubernetes agent scrape your own prometheus endpoints.
And if you've deployed the Observe Kubernetes agent, you can also use remote write to push data to Observe via that agent like so:
remote_write:
- url: http://proxy.observe.svc.cluster.local:2001/
remote_timeout: "30s"
queue_config:
min_backoff: "1s"
max_backoff: "30s"
max_shards: 20
max_samples_per_send: 5000
capacity: 15000Updated about 1 month ago