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

fix(prometheus-sd) namespace source names for v1 API #1896

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

austince
Copy link
Contributor

@austince austince commented Apr 27, 2021

Summary

Though targetgroup.Group.Source is constant in the native Prometheus SD implementations, the kuma-prometheus-sd
does target diff tracking using this field in order to remove groups from the written file, and expects it to be unique.

Full changelog

  • Ensure that kuma-prometheus-sd uses namespaced source names for targetgroup.Groups, so diffs can be calculated

Issues resolved

Fixes #1886

Documentation

Signed-off-by: austin ce <austin.cawley@gmail.com>
@austince austince force-pushed the fix/prometheus-sd/source-ns branch 2 times, most recently from 89f1acb to 1a0931e Compare April 27, 2021 22:57
@lobkovilya
Copy link
Contributor

Yes, it works now! Looks like the problem happened because of the name's collision. Feel free to bump default version back to v1 in this PR

Signed-off-by: austin ce <austin.cawley@gmail.com>
@austince austince marked this pull request as ready for review April 28, 2021 15:25
@austince austince requested a review from a team as a code owner April 28, 2021 15:25
@austince
Copy link
Contributor Author

@lobkovilya all ready, if you have time to take a look

@austince
Copy link
Contributor Author

@nickolaev did we add MADS v1 to in stable yet?

@austince austince merged commit 095557e into master Apr 29, 2021
@austince austince deleted the fix/prometheus-sd/source-ns branch April 29, 2021 16:52
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.

kuma-prometheus-sd doesn't work with MADs v1
3 participants