Skip to content

Commit

Permalink
rate counters in data.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pérez-Aradros Herce committed Mar 24, 2020
1 parent 25cf597 commit 969c233
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
17 changes: 8 additions & 9 deletions x-pack/metricbeat/module/prometheus/collector/_meta/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
"prometheus": {
"labels": {
"instance": "172.27.0.2:9090",
"job": "prometheus",
"scrape_job": "prometheus"
"interval": "15s",
"job": "prometheus"
},
"prometheus_target_scrape_pool_sync_total": {
"counter": 1
"prometheus_target_interval_length_seconds_count": {
"counter": 1,
"rate": 0
},
"prometheus_target_sync_length_seconds_count": {
"counter": 1
},
"prometheus_target_sync_length_seconds_sum": {
"counter": 0.000046958
"prometheus_target_interval_length_seconds_sum": {
"counter": 15.000401344,
"rate": 0
}
},
"service": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ func TestData(t *testing.T) {
service := compose.EnsureUp(t, "prometheus")

config := map[string]interface{}{
"module": "prometheus",
"metricsets": []string{"collector"},
"hosts": []string{service.Host()},
"use_types": true,
"module": "prometheus",
"metricsets": []string{"collector"},
"hosts": []string{service.Host()},
"use_types": true,
"rate_counters": true,
}
ms := mbtest.NewReportingMetricSetV2Error(t, config)
var err error
Expand Down

0 comments on commit 969c233

Please sign in to comment.