Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement prometheus remote write decoder #201

Merged
merged 13 commits into from
Apr 26, 2024

Conversation

cosmo0920
Copy link
Contributor

No description provided.

@cosmo0920 cosmo0920 changed the title Implement rometheus remote write decoder Implement prometheus remote write decoder Apr 17, 2024
@cosmo0920 cosmo0920 force-pushed the cosmo0920-prometheus-remote-write-decoder branch from c267905 to 8cb2739 Compare April 19, 2024 11:22
@edsiper
Copy link
Member

edsiper commented Apr 19, 2024

Thank you. Before we merge this, please add some unit tests for the decoding. e.g: https://github.com/fluent/cmetrics/tree/master/tests

@cosmo0920
Copy link
Contributor Author

Got it. I supposed that Prometheus encoding and decoding pair test should be enough for now…

…eus remote write

Currently, the following types are supported:

* counter
* gauge
* untyped

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
This protobuf defitions is referred in Prometheus' commit:
033c9b229df1dbe04d4d548305befe022743b602.

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
… the renewed protocol

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
…definitions

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@cosmo0920 cosmo0920 force-pushed the cosmo0920-prometheus-remote-write-decoder branch from 8cb2739 to 613689d Compare April 22, 2024 07:53
@cosmo0920
Copy link
Contributor Author

Oh, memory leaks are detected. I'll investigate on it.

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@cosmo0920
Copy link
Contributor Author

Now, CI gets green. 🟢

src/cmt_decode_prometheus_remote_write.c Show resolved Hide resolved
src/cmt_decode_prometheus_remote_write.c Outdated Show resolved Hide resolved
tests/decoding.c Outdated Show resolved Hide resolved
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
…included

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@edsiper edsiper merged commit f4cf560 into master Apr 26, 2024
18 checks passed
@edsiper edsiper deleted the cosmo0920-prometheus-remote-write-decoder branch April 26, 2024 16:47
@cosmo0920
Copy link
Contributor Author

Thanks!

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.

None yet

2 participants