open-telemetry/opentelemetry-collector
View on GitHub[Metric builder] Add external system states to be used in metric constraints
Open
#12,620 opened on Oct 31, 2022
cmd/mdatagenenhancementhelp wanted
Repository metrics
- Stars
- (7,237 stars)
- PR merge metrics
- (PR metrics pending)
Description
Originally suggested by @djaglowski in https://github.com/open-telemetry/opentelemetry-collector/pull/6358#discussion_r1000609067
Add ability to provide optional states of the monitored system that can be used in metric constraints like the following:
some.metric.with_min:
...
constraints:
min_version: 5.0
some.metric.with_max:
...
constraints:
max_version: 99.9
some.metric.with_minmax:
...
constraints:
min_version: 0.1
max_version: 0.9
some.metric.requires_config:
...
constraints:
config_settings:
- replication: enabled
some.metric.with_unusual_constraint:
...
constraints:
text: Only returned when...