From a7cbbbcab08ba17ad7a562792ea3fdc7e369affe Mon Sep 17 00:00:00 2001 From: Miles Garnsey <11435896+Miles-Garnsey@users.noreply.github.com> Date: Thu, 9 Mar 2023 09:56:11 +1100 Subject: [PATCH] Default metrics filters for new metrics agent (#834) * Start stubbing out methods for agent config. * Add reconciliation logic, tests. * CRD upgrades, codegen upgrades. * Make type names more concise. * The Endpoint type within the CassandraAgentSpec needs to be a pointer as it must be optional from the perspective of the CR so that it can have defaulting behaviour in the controller. * Replace Cassandra agent `filters` field with `relabels`. * Update metric-collector.yaml to metrics-collector.yaml * Make changes to default metrics so that new metrics name format is correctly parsed by regex. --- .DS_Store | Bin 6148 -> 0 bytes apis/telemetry/v1alpha1/telemetry_types.go | 4 +- .../v1alpha1/zz_generated.deepcopy.go | 10 +- .../bases/k8ssandra.io_k8ssandraclusters.yaml | 12 +- .../bases/reaper.k8ssandra.io_reapers.yaml | 2 +- .../stargate.k8ssandra.io_stargates.yaml | 4 +- .../en/components/metrics-collector/_index.md | 2 +- docs/content/en/tasks/monitor/_index.md | 1 - .../cassandra_agent/cassandra_agent_config.go | 89 ++++++++++- .../cassandra_agent_config_test.go | 138 +++++++++++++++++- 10 files changed, 236 insertions(+), 26 deletions(-) diff --git a/.DS_Store b/.DS_Store index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0