Skip to content

Instantly share code, notes, and snippets.

@im-konge
Created August 8, 2024 15:13
Show Gist options
  • Save im-konge/cbbe1212dfd7a194e6e7b1f421d0d0ed to your computer and use it in GitHub Desktop.
Save im-konge/cbbe1212dfd7a194e6e7b1f421d0d0ed to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
labels:
name: kube-state-metrics-config
namespace: namespace-0
data:
config.yaml: |
spec:
resources:
- groupVersionKind:
group: kafka.strimzi.io
kind: KafkaTopic
version: v1beta2
metricNamePrefix: strimzi_kafka_topic
metrics:
- each:
info:
labelsFromPath:
name:
- metadata
- name
type: Info
help: The current state of a Strimzi kafka topic resource
labelsFromPath:
exported_namespace:
- metadata
- namespace
generation:
- status
- observedGeneration
partitions:
- spec
- partitions
ready:
- status
- conditions
- '[type=Ready]'
- status
replicas:
- spec
- replicas
topicId:
- status
- topicId
topicName:
- status
- topicName
name: resource_info
- groupVersionKind:
group: kafka.strimzi.io
kind: KafkaUser
version: v1beta2
metricNamePrefix: strimzi_kafka_user
metrics:
- each:
info:
labelsFromPath:
name:
- metadata
- name
type: Info
help: The current state of a Strimzi kafka user resource
labelsFromPath:
deprecated:
- status
- conditions
- '[reason=DeprecatedFields]'
- type
exported_namespace:
- metadata
- namespace
generation:
- status
- observedGeneration
ready:
- status
- conditions
- '[type=Ready]'
- status
secret:
- status
- secret
username:
- status
- username
name: resource_info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment