hashicorp / hashicorp/consul

Support Prometheus Metrics in the API Client

Open
#9,789 0 comments 1 reaction 0 assignees View on GitHub
theme/telemetry
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Currently the [API client function](https://github.com/hashicorp/consul/blob/087247967c2f00ec23b60692de9626ba7d91b805/api/agent.go#L461-L474) to retrieve metrics uses the standard metrics format.

We would like to be able to use the prometheus format metrics and have them be parsed into some struct. The reasoning is that polling the non-prometheus format metrics disappear and we want to poll the prometheus one so that it doesn't happen.

#### Feature Description

Add a `AgentMetricsPrometheus` function (maybe different) name to the api module.

#### Use Case(s)

We are collecting metrics and don't want them to disappear between metrics aggregation intervals.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.