Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slim-down the list of tags for Strimzi metrics #280

Open
arov00 opened this issue Dec 10, 2024 · 0 comments
Open

Slim-down the list of tags for Strimzi metrics #280

arov00 opened this issue Dec 10, 2024 · 0 comments

Comments

@arov00
Copy link
Contributor

arov00 commented Dec 10, 2024

Telegraf, in its current configuration, collects a lot of tags when scraping strimzi metrics. For example:

{
  "fields": {
    "counter_diff": 2
  },
  "name": "kafka_network_requestmetrics_requestbytes_count_total",
  "tags": {
    "address": "10.42.0.62",
    "app.kubernetes.io/instance": "my-cluster",
    "app.kubernetes.io/managed-by": "strimzi-cluster-operator",
    "app.kubernetes.io/name": "kafka",
    "app.kubernetes.io/part-of": "strimzi-my-cluster",
    "env": "dev",
    "host": "confluent.cloud",
    "namespace": "kafka",
    "pod_name": "my-cluster-kafka-0",
    "request": "DescribeUserScramCredentials",
    "source": "strimzi-metric-api",
    "statefulset.kubernetes.io/pod-name": "my-cluster-kafka-0",
    "strimzi.io/broker-configuration-hash": "c66c3af7",
    "strimzi.io/broker-role": "true",
    "strimzi.io/clients-ca-cert-generation": "0",
    "strimzi.io/cluster": "my-cluster",
    "strimzi.io/cluster-ca-cert-generation": "0",
    "strimzi.io/cluster-ca-key-generation": "0",
    "strimzi.io/component-type": "kafka",
    "strimzi.io/controller": "strimzipodset",
    "strimzi.io/controller-name": "my-cluster-kafka",
    "strimzi.io/controller-role": "false",
    "strimzi.io/inter-broker-protocol-version": "3.8",
    "strimzi.io/kafka-version": "3.8.0",
    "strimzi.io/kind": "Kafka",
    "strimzi.io/log-message-format-version": "3.8",
    "strimzi.io/logging-hash": "e893ac9f",
    "strimzi.io/name": "my-cluster-kafka",
    "strimzi.io/pod-name": "my-cluster-kafka-0",
    "strimzi.io/pool-name": "kafka",
    "strimzi.io/revision": "c7348c6d",
    "strimzi.io/server-cert-hash": "99619e7c8f1425f62aba138357baf3eba923f7db",
    "url": "http://10.42.0.62:9404/metrics"
  },
  "timestamp": 1733501282
}

Most of these are not relevant to cost control and unnecessarily inflate the amount of data stored/moved over the network. Perhaps we can work with the tagexclude modifier to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant