Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Prometheus format converter #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Prometheus format converter #6

wants to merge 2 commits into from

Conversation

FZambia
Copy link
Contributor

@FZambia FZambia commented Apr 9, 2021

Experiment with converting Prometheus format:

BenchmarkConverter_Convert-12    	    1432	    747087 ns/op	  316060 B/op	    9626 allocs/op

fields[2].Append(gauge.GetValue())
case dto.MetricType_SUMMARY:
summary := m.GetSummary()
// TODO: sum and count.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only idea that came to me is make sum and count as separate frames, but it seems so wasteful

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant