how to remove '@' in this (resource.attributes.k8s@node@name) in k8s cluster metrics and add '_' #34935
Unanswered
NamanGajjar26
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello
i am using k8 cluster in receive to get kubernetes metrics and send to opensearch using data prepper
metrics get like this below i want to remove attributes in resource.attributes.k8s@deployment@name, resource.attributes.k8s@namespace@name in remove '@' and add '_'
isMonotonic null aggregationTemporality null unit {cpu} kind GAUGE flags 0 name k8s.pod.cpu.usage description Total CPU usage (sum of all cores per second) averaged over the sample window attributes {"instrumentationScope.name":"otelcol/kubeletstatsreceiver","resource.attributes.k8s@pod@uid":"351fbdd0-a600-4c27-9e7c-201b6c3630b9","resource.attributes.k8s@namespace@name":"default","resource.attributes.k8s@node@name":"minikube","resource.attributes.k8s@deployment@name":"mydataprepper-data-prepper","resource.attributes.k8s@pod@start_time":"2024-08-30 05:24:15","resource.attributes.k8s@pod@name":"mydataprepper-data-prepper-7b85cd7d95-q24s9","instrumentationScope.version":"0.106.1"} startTime 2024-08-30 05:24:16 time 2024-08-30 05:25:06.773581253 value 0.015850862 schemaUrl
i try to use metrics change filed attributesprocessor and metricstransformprocessor this not working any solution to change this
Beta Was this translation helpful? Give feedback.
All reactions