Im sending metrics and traces from multiple k8s cl...
# support
h
Im sending metrics and traces from multiple k8s clusters, how would you separate metrics from cluster A from cluster B ? Right now its all in a big soup in the dashboard tab in signoz.
s
You can add variable for cluster in dashboard and use it in queries.
h
But there is nothing separating for instance, a node from cluster A from a node from cluster B
node_name is the only thing i can group by, there isnt any cluster-name or similar
a
@hans when you add
cluster
as an attribute/label to the metrics data, it will be automatically available in the
where
and
groupby
clause of SigNoz.
h
ah, thanks. I ended up doing this:
Copy code
metricstransform:
  transforms:
    - include: ".*"
      match_type: "regexp"
      action: "update"
      operations:
        - action: "add_label"
          new_label: "k8s.cluster.name"
          new_value: "<clusterName>"
but maybe i should change to resourcedetectionprocessor, although that requires
EC2:DescribeInstances
not sure if my nodes has that (probably?)
but the metricstransform is fine