concourse / hush-house

Concourse k8s-based environment
https://hush-house.pivotal.io
29 stars 23 forks source link

metrics: reduce cadvisor cardinality #63

Closed cirocosta closed 4 years ago

cirocosta commented 5 years ago

Hey,

At the moment, there are a bunch of measurements arriving from cadvisor that simply don't matter for us:

To do so, we could introduce metric_relabel_configs:

# drop any metrics from the `cadvisor` job that
# are not regarding the namespace that we want (`test`)
#
          metric_relabel_configs:
            - source_labels: [namespace]
              regex: 'test'
              action: keep

Thanks!

cirocosta commented 4 years ago

done https://github.com/concourse/hush-house/commit/194876b45cd0acc0c22f3c29756ffa8caa71b36e

the approach taken was the same as proposed: whitelist the namespaces that we care about