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

thanos: allow injecting alert relabelling configuration for thanos ruler #4303

Conversation

sjentzsch
Copy link
Contributor

@sjentzsch sjentzsch commented Oct 4, 2021

this extends the configuration of thanos ruler to include the advanced
relabelling configuration for alerts, being identical to the
alert_relabel_configs field of Prometheus

Closes #4256

Description

With thanos-io/thanos#4125 the Prometheus Alert-Relabeling feature went in to Thanos Rule.
This configuration should also be able to set via the prometheus-operator.

Type of change

  • FEATURE (non-breaking change which adds functionality)

Changelog entry

- Add alertRelabelConfigs field to the Thanos Ruler CRD for configuring Prometheus alert relabeling features.

@sjentzsch sjentzsch requested a review from a team as a code owner October 4, 2021 17:38
pkg/apis/monitoring/v1/thanos_types.go Outdated Show resolved Hide resolved
pkg/thanos/statefulset.go Outdated Show resolved Hide resolved
pkg/apis/monitoring/v1/thanos_types.go Outdated Show resolved Hide resolved
pkg/apis/monitoring/v1/thanos_types.go Outdated Show resolved Hide resolved
pkg/apis/monitoring/v1/thanos_types.go Outdated Show resolved Hide resolved
@sjentzsch sjentzsch force-pushed the thanos-rule-alert-relabeling branch 2 times, most recently from dc73949 to ddad302 Compare October 5, 2021 11:57
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

LGTM, just minor comments :)

pkg/thanos/statefulset.go Outdated Show resolved Hide resolved
pkg/thanos/statefulset.go Outdated Show resolved Hide resolved
pkg/thanos/statefulset_test.go Show resolved Hide resolved
this extends the configuration of thanos ruler to include the advanced
relabelling configuration for alerts, being identical to the
alert_relabel_configs field of Prometheus
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

thanks!

@simonpasquier simonpasquier merged commit e586849 into prometheus-operator:master Oct 6, 2021
@sjentzsch
Copy link
Contributor Author

@simonpasquier Thanks for your comments and the fast work on this :)

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.

Support advanced alert relabeling configuration for Thanos Ruler
2 participants