An all-in-one observability solution which aims to combine the advantages of Prometheus and Grafana. It manages alert rules and visualizes metrics, logs, traces in a beautiful web UI.
What this PR does / why we need it:
This PR implements conditional relabeling and various relabeling actions as specified in the relabeling rules documentation. It ensures that metrics are processed according to specific conditions and transformations, improving the flexibility and functionality of our relabeling process.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
This PR includes the following changes:
Conditional Relabeling: Added support for conditional relabeling using the if field in the configuration. This allows relabeling actions to be applied only when specific conditions are met.
What type of PR is this?
What this PR does / why we need it: This PR implements conditional relabeling and various relabeling actions as specified in the relabeling rules documentation. It ensures that metrics are processed according to specific conditions and transformations, improving the flexibility and functionality of our relabeling process.
Which issue(s) this PR fixes: Fixes #
Special notes for your reviewer: This PR includes the following changes:
if
field in the configuration. This allows relabeling actions to be applied only when specific conditions are met.Example Usage:
Adding new label:
Transforms:
Updating existing label:
Transforms:
Conditional relabeling:
Transforms:
Please review the changes and provide feedback. Detailed test cases have been included to ensure all relabeling actions work as expected.