Hi, Is there a way to filter hostnames based on environment ( sandbox / dev ) ? I tried with addin...
e
Hi, Is there a way to filter hostnames based on environment ( sandbox / dev ) ? I tried with adding labels to /etc/otelcol-contrib/config.yaml but it didn't help
processors:
attributes:
actions:
- key: "environment"
value: "development"
v
You should be able to edit variable to filter on environment with a WHERE clause.
cc: @Srikanth Chekuri
e
Query returns nothing
s
What query did you use?
e
Copy code
SELECT DISTINCT(JSONExtractString(labels, 'host_name'))
FROM signoz_metrics.time_series_v2
WHERE not has(JSONExtractKeys(labels), 'k8s_node_name') and has(JSONExtractKeys(labels), {{.environment}})
s
If this doesn't show any hosts then it means there are no metric emitting host meta data