IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Prometheus module
editPrometheus module
editThis functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.
This module periodically fetches metrics from Prometheus.
The default metricset is collector
.
Example configuration
editThe Prometheus module supports the standard configuration options that are described in Specify which modules to run. Here is an example configuration:
metricbeat.modules: - module: prometheus metricsets: ["stats"] enabled: true period: 10s hosts: ["localhost:9090"] #metrics_path: /metrics #namespace: example - module: prometheus metricsets: ["collector"] enabled: true period: 10s hosts: ["localhost:9090"] #metrics_path: /metrics #namespace: example # This can be used for service account based authorization: # bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token #ssl.certificate_authorities: # - /var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
This module supports TLS connection when using ssl
config field, as described in Specify SSL settings. It also supports the options described in Standard HTTP config options.
Metricsets
editThe following metricsets are available: