metrics:
prometheus:
host: 127.0.0.1Metrics
As of today, heimdall only supports Prometheus as metrics backend, which is also enabled by default by exposing available metrics on 0.0.0.0:9000/metrics endpoint.
Prometheus
Configuration for Prometheus can be adjusted in the prometheus property, which lives in the metrics property of heimdall’s configuration and supports following properties.
host: string (optional)By making use of this property, you can specify the TCP/IP address on which heimdall should listen for connections from client applications. The entry
0.0.0.0allows listening for all IPv4 addresses.0.0.0.0is also the default setting.Example 1. Configure heimdall to allow only local TCP/IP “loopback” connections to be made.port: integer (optional)By making use of this property, you can specify the TCP port the heimdall should listen on. Defaults to
9000.Example 2. Configure heimdall to listen on port9999for metrics requests.metrics: prometheus: port: 9999metrics_path: string (optional)By making use of this property, you can specify the path under which prometheus metrics information is made available. Defaults to
/metrics.Example 3. Configure heimdall expose metrics information behind/prometheuspath.metrics: prometheus: metrics_path: /prometheus
Last updated on Jun 29, 2022