-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
User/System Metadata labels filters in stackdriver #11547
Comments
Hi, Have you seen the stackdriver README? At the end of the example configuration, there is a section on filtering based on labels, which sounds like what you are interested in doing? Is your request different than what already exists? ## Filters can be added to reduce the number of time series matched. All
## functions are supported: starts_with, ends_with, has_substring, and
## one_of. Only the '=' operator is supported.
##
## The logical operators when combining filters are defined statically using
## the following values:
## filter ::= <resource_labels> {AND <metric_labels>}
## resource_labels ::= <resource_labels> {OR <resource_label>}
## metric_labels ::= <metric_labels> {OR <metric_label>}
##
## For more details, see https://cloud.google.com/monitoring/api/v3/filters
#
## Resource labels refine the time series selection with the following expression:
## resource.labels.<key> = <value>
# [[inputs.stackdriver.filter.resource_labels]]
# key = "instance_name"
# value = 'starts_with("localhost")'
#
## Metric labels refine the time series selection with the following expression:
## metric.labels.<key> = <value>
# [[inputs.stackdriver.filter.metric_labels]]
# key = "device_name"
# value = 'one_of("sda", "sdb")' Thanks! |
Hi, If there is a possibility right now to use metadata filters, could you please show me an example? As one mentioned in README is not enough. |
Hello, any news? I am also looking for this feature ;) Thanks, |
Feature Request
I would like to be able to filter metrics from google with information about user/system metadata labels.
Current behavior:
I cannot download data regarding metadata labels using stackdriver plugin. Nor can I filter by them, nor have these data, to filter later.
Desired behavior:
I would like either to be able to filter downloaded metrics based on metadata labels or do not lose these information.
Use case:
In Cloud Monitoring API I can see some examples with
metadata.system_labels.[KEY]
metadata.user_labels.[KEYSTRING]
whereas I am unable to use it together with Stackdriver plugin. I also lose information of them after putting data to influx db.
Do you think it would be possible to add this feature?
The text was updated successfully, but these errors were encountered: