Hi,
any more ideas how to solve this?
вт, 19 мая 2020 г. в 19:53, Denis Trunov <[email protected]>:
> It helped with moduleIDsType metrics - instead of
>
> moduleIDsType{moduleIDsIndex="1"} 296
>
>
> with
>
> overrides:
> moduleIDsType:
> type: EnumAsInfo
>
> I can get
>
> moduleIDsType_info{moduleIDsIndex="1",moduleIDsType="moduleDigitalVideo12PortIO"}
> 1
>
>
> But in other metrics I still have
>
> moduleConfigsPowerStatus{moduleConfigsIndex="1",moduleIDsType="296"} 2
>
>
>
>
>
>
>
> вторник, 19 мая 2020 г., 18:54:39 UTC+3 пользователь Brian Brazil написал:
>>
>> On Tue, 19 May 2020 at 16:51, Denis Trunov <[email protected]> wrote:
>>
>>> Hi,
>>> I have a very simple generator.yml file with just walk section - it
>>> works fine, I can get metrics look like
>>>
>>> moduleConfigsPowerStatus{moduleConfigsIndex="1",moduleIDsType="296"} 2
>>>
>>>
>>> moduleIDsType is described in MIB
>>>
>>> moduleIDsType OBJECT-TYPE
>>> SYNTAX Integer32 { moduleUnknown(0),
>>> moduleDigitalVideoInput(272), moduleDigitalVideoOutput(288),
>>> moduleDigitalVideo12PortIO(296), moduleAnalogueVideoInput(304),
>>> moduleAnalogueVideoOutput(320),
>>> moduleDigitalAudioInput(336), moduleDigitalAudioOutput(352),
>>> moduleFibreInput(368),
>>> moduleFibreOutput(384),
>>> moduleTimeCode(400), moduleRS422(402), moduleVideoCrosspoint(416),
>>> moduleAudioCrosspoint(418),
>>> moduleDigitalVideoInputXpntOutput(432),
>>> moduleAnalogueVideoInputXpntOutput(433),
>>> moduleDigitalAudioInputXpntOutput(434),
>>> moduleAnalogueAudioInputXpntOutput(435),
>>> moduleRS422InputCrosspointOutput(440),
>>> moduleMonitor(464),
>>> modulePowerSupply(466), moduleFanAlarm(468), moduleControl(448),
>>> moduleControlExpansion(449),
>>> moduleDigitalVideoInputVariant2(528),
>>> moduleDigitalVideoOutputVariant2(544), moduleVideoCrosspointVariant2(672),
>>> moduleTimecodeInputXpntOutput(441),
>>> moduleCATSIIControl(470), moduleReferenceControl(471),
>>> moduleCATSIIControlVariant2(726),
>>> moduleMV830Input(278),
>>> moduleMV830Output(294), moduleIPInput(276), moduleIPOutput(292) }
>>> MAX-ACCESS read-only
>>> STATUS current
>>> DESCRIPTION "None"
>>> ::= { moduleIDsEntry 12 }
>>>
>>> How can I replace "296" with the corresponding text value? I.e. 296
>>> -> moduleDigitalVideo12PortIO
>>>
>>
>> Presuming that doesn't vary over time, add an metric override for
>> EnumAsInfo 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/69d93de3-b937-4314-993b-e647a201b356%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/69d93de3-b937-4314-993b-e647a201b356%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/CAHMqP6frDQz2Ajz7sCS6eqRk0A4Ne3V6gHLSSNuYjcNh2_hRBQ%40mail.gmail.com.