Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (27 loc) · 2 KB

File metadata and controls

34 lines (27 loc) · 2 KB

metrics-reporter-prometheus

Pulling metrics

The Prometheus metrics endpoint is available at http://graylog.example.com:9000/api/plugins/org.graylog.plugins.metrics.prometheus/metrics.

The corresponding configuration in prometheus.yml would look like the following code snippet:

# See https://prometheus.io/docs/operating/configuration/#<scrape_config> for details
scrape_configs:
  - job_name: 'graylog'
    scrape_interval: 15s
    metrics_path: '/api/plugins/org.graylog.plugins.metrics.prometheus/metrics'
    basic_auth:
      username: graylog_username
      password: graylog_password
    # Optional TLS configuration; see https://prometheus.io/docs/operating/configuration/#<tls_config>
    #tls_config:
    static_configs:
      - targets: ['graylog1.example.com:9000', 'graylog2.example.com:9000']

Configuration settings

Setting Default Description
metrics_prometheus_enabled false Whether to push the metrics to a Prometheus Pushgateway.
metrics_prometheus_report_interval 15s How often to report metrics to the Prometheus Pushgateway.
metrics_prometheus_address 127.0.0.1:9091 The network address of the Prometheus Pushgateway.
metrics_prometheus_job_name graylog The job name used with the Prometheus Pushgateway.
metrics_prometheus_grouping_key [empty] The grouping key used with the Prometheus Pushgateway in the format key1:value1, key2:value2.