On Tue, 3 Mar 2020 at 01:54, Виталий Ковалев <[email protected]> wrote:
> Of course. Here is it. > https://drive.google.com/open?id=17RrbVMNsYrNupOB0GeQfve3AV1rQY76d > There is no FiberRxPower in that MIB. I'm guessing you meant input1Power and input2Power? There's no table for these, so I'd suggest leaving it as-is and dealing with it in PromQL. Brian > > > понедельник, 2 марта 2020 г., 18:57:16 UTC+12 пользователь Brian Brazil > написал: >> >> On Mon, 2 Mar 2020 at 02:08, Виталий Ковалев <[email protected]> wrote: >> >>> Hello. >>> On my network i have some specific devices(Optical Receivers), which >>> violate usual snmp rules. >>> >> >> Why do you think they violate SNMP rules? Can you share the MIB? >> >> Brian >> >> >> >>> For example - When you do snmpwalk on IF-MIB::IfSpeed OID you get many >>> values in this format: >>> IF-MIB::ifSpeed.X = Gauge32: 10000000 >>> Where X Number of Interface. >>> >>> My devices have other logic. They have several oids for one metric(for >>> example optical signal power on inputs(total inputs-2)): >>> OPTICAL_INPUT1: 1.3.6.1.4.1.32108.1.9.2.2.0 >>> OPTICAL_INPUT2: 1.3.6.1.4.1.32108.1.9.2.3.0 >>> >>> How i can write it in one metric with several label for port? I want >>> output something like this: >>> >>> FiberRxPower{portIndex="1"} -999 >>> FiberRxPower{portIndex="2"} -36 >>> >>> >>> >> >> -- >> 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/359890fa-9c5d-451e-8a89-6d9f0c557b05%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/359890fa-9c5d-451e-8a89-6d9f0c557b05%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAHJKeLrMiPVo_m%3DYft6uFR%3DVTj3eL%3Da0GxgR4%2BEEcTHtjnerHQ%40mail.gmail.com.

