Hi,
In my setup, wanted to ingest data from Prometheus into Elasticsearch using MetricBeat.
Below are the versions:
- Prometheus: 2.7.1
- MetricBeat: 7.7
- Elasticsearch/Kibana: 7.7.1
Prometheus is receiving cumulative counters from the client pods.(Entire setup is in a K8S cluster)
We wanted MetricBeat to calculate the difference between the counter values between any two scraping intervals, and send this computed rate values into elasticsearch.
With the below configuration of MetricBeat, it still appears to be sending cumulative counter values instead of rate values. Within the configuration, have already set 'use_types: true', and 'rate_counters: true'
Could you please help in reviewing the configuration and let me know if any additional configuration needs to be enabled on MetricBeat?
cat prometheus.yml
-
module: prometheus
period: 10s
metricsets: ["collector"]
hosts: ["10.69.63.102:31999"]
metrics_path: '/federate'
query:
'match': '{job=~".+", job!="kubernetes-nodes"}'use_types: true
rate_counters: true