On Fri, 8 May 2020 at 10:11, Marko Juričić <[email protected]> wrote:
> Hi,
>
> in our devices we have devices that provide this kind of metrics trough
> SNMP Exporter and Prometheus:
>
> ifAlias{ifAlias="IP
> Phones",ifIndex="10013",instance="instance="XX"",job="CISCO_SWITCH",name="sw-lan-1kat-1"}
>
> ifHCInOctets{ifIndex="10013",instance="XX",job="CISCO_SWITCH",name="sw-lan-1kat-1"}
>
> ifOutUcastPkts{ifIndex="10013",instance="XX",job="CISCO_SWITCH",name="sw-lan-1kat-2"}
>
> *Is it possible to add ifAlias label from IfAlias metrics to other metrics
> that have the same ifIndex value?*
>
> Goal output:
>
> ifHCInOctets{ifAlias="IP
> Phones",ifIndex="10013",instance="XX",job="CISCO_SWITCH",name="sw-lan-1kat-1"}
> ifOutUcastPkts{ifAlias="IP
> Phones",ifIndex="10013",instance="XX",job="CISCO_SWITCH",name="sw-lan-1kat-2"}
>
> *Goal is to add ifAlias to all instances that have the same ifIndex.
> Lookups in generator were my first idea but somehow I am unable to make it
> work.*
>
Lookups can do this, what did you try in the generator.yml?
--
Brian Brazil
www.robustperception.io
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CAHJKeLqgTHrXzPsHzCHJHcFQMUwW1Gd%3DuheBuBOi9Hsmo7bs0w%40mail.gmail.com.