Running k8ssandra-operator 1.12, cassandra 4.3.1. Can you please clarify the format to filter out some metrics? For example, this is what I have in K8ssandraCluster spec:
The JVM metrics are not filtered, since this method does not apply to the JVM metrics (the JVM metrics are just proxied). For tables, I could not replicate your behavior. I created the following K8ssandraCluster:
I still see many metrics that have the table label:
kubectl exec -it -n k8ssandra-operator …-sts-0 – curl localhost:9000/metrics | grep "table
…
org_apache_cassandra_metrics_table_all_memtables_live_data_size{host=“da750756-57b5-47be-a592-d6444ce776ea”,…, table=“table_estimates”,should_drop=“false”,} 0.0
org_apache_cassandra_metrics_table_all_memtables_on_heap_data_size{host=“da750756-57b5-47be-a592-d6444ce776ea”,… table=“tables”,should_drop=“false”,} 0.0
org_apache_cassandra_metrics_table_all_memtables_on_heap_data_size{host=“da750756-57b5-47be-a592-d6444ce776ea”,… table=“table_estimates”,should_drop=“false”,} 0.0
Error: telemetry spec was invalid for this cluster - is Prometheus installed if you have requested it
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Reconcile Error 4m18s (x19 over 9m48s) k8ssandracluster-controller telemetry spec was invalid for this cluster - is Prometheus installed if you have requested it