Prometheus moduleedit

This module periodically scrapes metrics from Prometheus exporters.

Example configurationedit

The Prometheus module supports the standard configuration options that are described in Specify which modules to run. Here is an example configuration:

- module: prometheus
  period: 10s
  hosts: ["localhost:9090"]
  metrics_path: /metrics
  #username: "user"
  #password: "secret"

  # This can be used for service account based authorization:
  #  bearer_token_file: /var/run/secrets/
  #  - /var/run/secrets/

This module supports TLS connections when using ssl config field, as described in Specify SSL settings. It also supports the options described in Standard HTTP config options.


The following metricsets are available: