Skip to content

Fixed OpenMetrics Content-Type support for cluster module#740

Open
gslandtreter wants to merge 1 commit into
siimon:masterfrom
gslandtreter:master
Open

Fixed OpenMetrics Content-Type support for cluster module#740
gslandtreter wants to merge 1 commit into
siimon:masterfrom
gslandtreter:master

Conversation

@gslandtreter

Copy link
Copy Markdown

There's a call to Registry.aggregate that does not pass in any value to the register content-type parameter. This causes the cluster/worker aggregator to always return PROMETHEUS_CONTENT_TYPE formatted metrics, instead of OPENMETRICS_CONTENT_TYPE, even when the latter is used when constructing the original AggregatorRegistry.

This commit fixes support for Registry.OPENMETRICS_CONTENT_TYPE by passing the AggregatorRegistry's content-type into the call to Registry.Aggregate within the cluster metrics response listener.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant