You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I cannot find any info about docs about this anywhere and I'm not sure whether it is actually possible when I see implementation but worth of asking.
I'm trying it translate following prometheus rule:
- pattern: 'kafka.server<type=app-info><>(commit-id|version): (.+)'
name: kafka_server_$1_info
value: 1
labels:
$1: "$2"
help: "Kafka server JMX metric info version and commit-id"
type: GAUGE
That gives me is following output metric:
kafka_server_version_info{version="3.1.0"} 1.0
to Jmxfetch rule.
Reason why I'm doing this is because attribute version is reported as double but in fact it is string and therefore I need to override metric with default value of 1.
So, after I was able to do the same with prometheus rule I'm trying to accomplish the same with jmxfetch as I'm using oob kafka integration to pull jmx metrics.
but this more or less yields metric kafka.server.cluster.version with value 1 and without tag version=3.1.0 as the one from prometheus rule would as there I could create label out of version attribute through regex. I'm not sure who to do the same here tho.
So, in short, is there a way to somehow send attribute as a label or a tag with its true value along side metric?
The text was updated successfully, but these errors were encountered:
Unfortunately, I cannot find any info about docs about this anywhere and I'm not sure whether it is actually possible when I see implementation but worth of asking.
I'm trying it translate following prometheus rule:
That gives me is following output metric:
to
Jmxfetch
rule.Reason why I'm doing this is because attribute
version
is reported asdouble
but in fact it is string and therefore I need to override metric with default value of1
.So, after I was able to do the same with prometheus rule I'm trying to accomplish the same with
jmxfetch
as I'm using oobkafka
integration to pull jmx metrics.So, if I tired use something like this:
but this more or less yields metric
kafka.server.cluster.version
with value1
and without tagversion=3.1.0
as the one from prometheus rule would as there I could create label out ofversion
attribute through regex. I'm not sure who to do the same here tho.So, in short, is there a way to somehow send attribute as a label or a tag with its true value along side metric?
The text was updated successfully, but these errors were encountered: