-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(googlecloudmonitoring): support monitoring filters #37264
base: main
Are you sure you want to change the base?
feat(googlecloudmonitoring): support monitoring filters #37264
Conversation
1cc5e3f
to
81dff4e
Compare
acf2409
to
31522d0
Compare
31522d0
to
6fd50f2
Compare
|
||
One of `metric_name` and `monitoring_filter` MUST be specified, but should not be specified at the same time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of `metric_name` and `monitoring_filter` MUST be specified, but should not be specified at the same time. | |
One of `metric_name` and `monitoring_filter` MUST be specified, but MUST not be specified at the same time. |
|
||
One of `metric_name` and `monitoring_filter` MUST be specified, but should not be specified at the same time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on https://cloud.google.com/monitoring/api/v3/filters, if we are applying these to only to ListMetricDescriptor, there are a lot of restrictions on what you can filter by that might confuse users. They can't use resource or group selectors, and presumably can't filter on labels: metric.labels.instance_name = monitoring.regex.full_match("gke-(hipster|nginx).*")
.
One solution would be to make this a metric_descriptor_filter
config option, so that it is clear we are filtering metric descriptors (and we should also document that there are restrictions on that filter). That way we could later add a separate time_series_filter
that we add to actual ListTimeSeries queries if we want.
Description
Link to tracking issue
Fixes part of #36898
Testing
Documentation