I am a little confused.
This article talks that it's better to improve your instrumentation than 
use relabeling.
https://www.robustperception.io/life-of-a-label

And can you tell about, how i can do this with PromQL?

среда, 4 марта 2020 г., 9:25:51 UTC+12 пользователь Ben Kochie написал:
>
> There's no function because it's intended for PromQL to deal with these 
> issues. Metrics exporters are designed to provide the data as raw as 
> possible to avoid second guessing the underlying data.
>
> On Tue, Mar 3, 2020 at 10:05 PM Виталий Ковалев <[email protected] 
> <javascript:>> wrote:
>
>> FiberRxPower is just name for the metic.
>> It's very sad that there is'nt such functional in snmp_exporter.
>> Maybe i should open a featureRequest on github?
>> However, thanks for help.
>>
>> понедельник, 2 марта 2020 г., 14:08:54 UTC+12 пользователь Виталий 
>> Ковалев написал:
>>>
>>> Hello.
>>> On  my network i have some specific devices(Optical Receivers), which 
>>> violate usual snmp rules.
>>> 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
>>>
>>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/0b4ae4f3-4ece-4909-b429-c6938d5c39e8%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-users/0b4ae4f3-4ece-4909-b429-c6938d5c39e8%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/6e4fcf4e-9cba-4b44-a769-a6c2accae393%40googlegroups.com.

Reply via email to