Skip to content

Commit

Permalink
separate out summary metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
iliakur committed Jan 18, 2023
1 parent ff65894 commit 8b2b863
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rabbitmq/datadog_checks/rabbitmq/openmetrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,6 @@
"rabbitmq_raft_log_last_written_index": "raft.log.last_written_index",
"rabbitmq_raft_log_snapshot_index": "raft.log.snapshot_index",
"rabbitmq_resident_memory_limit_bytes": "resident_memory_limit_bytes",
"telemetry_scrape_duration_seconds": "telemetry.scrape.duration_seconds",
"telemetry_scrape_encoded_size_bytes": "telemetry.scrape.encoded_size_bytes",
"telemetry_scrape_size_bytes": "telemetry.scrape.size_bytes",
"rabbitmq_build_info": {
'name': 'build_info',
"type": 'gauge',
Expand All @@ -233,5 +230,10 @@
"type": 'gauge',
},
}
_SUMMARIES = {
"telemetry_scrape_duration_seconds": "telemetry.scrape.duration_seconds",
"telemetry_scrape_encoded_size_bytes": "telemetry.scrape.encoded_size_bytes",
"telemetry_scrape_size_bytes": "telemetry.scrape.size_bytes",
}

RENAME_RABBITMQ_TO_DATADOG = {**{re.sub("_total$", "", k): v for k, v in _COUNTS.items()}, **_GAUGES}
RENAME_RABBITMQ_TO_DATADOG = {**{re.sub("_total$", "", k): v for k, v in _COUNTS.items()}, **_GAUGES, **_SUMMARIES}

0 comments on commit 8b2b863

Please sign in to comment.