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

feat: disallow any unknown fields to prometheus and add new flags to support loki, thanos or mimir #77

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

FUSAKLA
Copy link
Owner

@FUSAKLA FUSAKLA commented Jul 16, 2024

resolves #76

Till now, any custom fields of mimir, thanos or loki were silently tollerated, but that was not explicit a might lead to some issues.

From now on, only fields known to Prometheus are allowed by default and new flgs are added to explicitly support other systems

--support-loki
--support-mimir
--support-thanos

Also added tests for unmarshalling

Signed-off-by: Martin Chodur m.chodur@seznam.cz

… flags to support loki, thanos or mimir

Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
@FUSAKLA
Copy link
Owner Author

FUSAKLA commented Jul 16, 2024

Not sure about the flag naming 🤔

Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
@FUSAKLA FUSAKLA merged commit 8da15be into master Jul 17, 2024
3 checks passed
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.

Add option to specify which configs are allowed mimir/cortex/loki/thanos
1 participant