Prometheus APM Plugin
The prometheus
APM plugin allows querying for metrics stored in a
Prometheus server.
Agent Configuration Options
apm "prometheus" {
driver = "prometheus"
config = {
address = "http://prometheus.my.endpoint.io:9090"
}
}
address
(string: "http://127.0.0.1:9090")
- The address of the Prometheus endpoint used to perform queries.
Policy Configuration Options
check {
source = "prometheus"
query = "avg((haproxy_server_current_sessions{backend=\"http_back\"}))"
# ...
}