-
Notifications
You must be signed in to change notification settings - Fork 135
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 templated topic #43
Conversation
Hi @jbguerraz , thanks for your first contribution. I think this change breaks current unit tests because some interfaces change from
Could you please fix the tests? It's also a good chance to add a new one to cover templated topics. I've just added #44 to make Travis pass unit tests in the CI pipeline, BTW. |
6cb36e7
to
8c801b6
Compare
Hola @palmerabollo :) |
It's our fault, it should be automated in the CI pipeline. It looks good to me. Let's give @jpfe-tid a couple of days to review it and release a new version. Thanks again for your time to improve the project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- add additional checks at substring template func
- don't take the reference of a loop variable
8c801b6
to
0d3d971
Compare
0d3d971
to
9de6350
Compare
9de6350
to
8d2e9e2
Compare
Thank you for the review @jpfe-tid ! |
8d2e9e2
to
3199eb9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for your contribution @jbguerraz !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Release 1.7.0 published.
https://github.com/Telefonica/prometheus-kafka-adapter/releases/tag/1.7.0
cc @jbguerraz
@jpfe-tid would you mind amending the commit in order to remove my email address please ? :) sorry and thank you! |
Hi @jbguerraz, I'm sorry but I can't do that now that the PR has been merged and a release has been published. It would require a force push to the master branch. Your email address is attached to all your commits (e.g. 3199eb9). Check this GitHub link for how to setup a privacy email alias: https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address#setting-your-commit-email-address-on-github Check my commits as an example: 0ba161e |
Hello :)
Thank you for such adapter!
We need to distribute the metrics into different topics (one per cluster component), so we implemented templated topic relying on golang
template/text
(fast - we implemented the same logic for nats-kafka adapter and benchmarked it : nats-io/nats-kafka#11), and on metric labels.For the sake of clarifying our use case:
Our cluster is made of a set of components (µservices, applications,...). Each component has an associated channel and each component produce logs, metrics, events and traces.
Let's say the component A got the channel
component.a
, its logs will be published in kafka topiclogs.component.a
, its metrics will be published in kafka topicmetrics.component.a
and so on. Then spark applications can subscribe to the data that matter to them. For instance, one spark application may care about the ingress controller metrics, it then gonna subscribes tometrics.component.ingress
.Eventually, one may wish to have a per-metric topic, or even a per component per metric topic (
metrics.{{ index . "componentname" }}.{{ index ."__name__" }}
).