Skip to content

Conversation

@piptouque
Copy link

Purpose

This pull requests adds support for operators other than exact equality when fetching metrics.

Proposal

We add an optional operator to the label_config data that's passed to PrometheusConnect.get_current_metric_value and PrometheusConnect.get_metric_range_data. The default is = and previous behaviour is unchanged.

  • add support for custom operators in PrometheusConnect.get_current_metric_value and PrometheusConnect.get_metric_range_data
  • add some unit tests for query_to_str method

This allows us to match labels
with regular expressions.
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.

1 participant