prometheus
Reference for the `prometheus` adapter.
prometheus· adapter · runnanook doc prometheusfor the same content in your terminal.
Exposes metrics for Prometheus scraping over HTTP.
Options
| Option | Type | Default | Description |
|---|---|---|---|
port | string | 9090 | HTTP scrape port |
ttl | string | 300 | metric time-to-live in seconds |
token | string | — 🔒 | optional bearer token for scrape auth |
Examples
Default scrape endpoint
[[]]
= "prometheus"
[]
= 9090
= 300
Bearer-token authenticated scrape
[[]]
= "prometheus"
[]
= 9090
= 600
= "${PROMETHEUS_SCRAPE_TOKEN}"
= '!(name ~ "*.debug")'