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
# HELP junos_alarms_red_count Number of red alarms (not silenced)
# TYPE junos_alarms_red_count gauge
junos_alarms_red_count{target="TARGET"} 0
# HELP junos_alarms_set Alarm active with the details provided in labels
# TYPE junos_alarms_set gauge
junos_alarms_set{class="Minor",description="Autorecovery information needs to be saved",target="TARGET",type="Autorecovery"} 1
junos_alarms_set{class="Minor",description="Rescue configuration is not set",target="TARGET",type="Configuration"} 1
# HELP junos_alarms_yellow_count Number of yollow alarms (not silenced)
# TYPE junos_alarms_yellow_count gauge
junos_alarms_yellow_count{target="TARGET"} 2
# HELP junos_collect_duration_seconds Duration of a scrape by collector and target
# TYPE junos_collect_duration_seconds gauge
junos_collect_duration_seconds{collector="Alarm",target="TARGET"} 5.236934917
# HELP junos_collector_duration_seconds Duration of a collector scrape for one target
# TYPE junos_collector_duration_seconds gauge
junos_collector_duration_seconds{target="TARGET"} 5.2369784169999996
# HELP junos_up Scrape of target was successful
# TYPE junos_up gauge
junos_up{target="TARGET"} 1
multi-RE `show system alarms`
<rpc-replyxmlns:junos="http://xml.juniper.net/junos/ZZZ/junos">
<multi-routing-engine-results>
<multi-routing-engine-item>
<re-name>node0</re-name>
<alarm-informationxmlns="http://xml.juniper.net/junos/ZZZ/junos-alarm">
<alarm-summary>
<active-alarm-count>2</active-alarm-count>
</alarm-summary>
<alarm-detail>
<alarm-timejunos:seconds="1684172206">2023-05-15 17:36:46 UTC</alarm-time>
<alarm-class>Minor</alarm-class>
<alarm-description>Autorecovery information needs to be saved</alarm-description>
<alarm-short-description>autorecovery-save-r</alarm-short-description>
<alarm-type>Autorecovery</alarm-type>
</alarm-detail>
<alarm-detail>
<alarm-timejunos:seconds="1684172206">2023-05-15 17:36:46 UTC</alarm-time>
<alarm-class>Minor</alarm-class>
<alarm-description>Rescue configuration is not set</alarm-description>
<alarm-short-description>no-rescue</alarm-short-description>
<alarm-type>Configuration</alarm-type>
</alarm-detail>
</alarm-information>
</multi-routing-engine-item>
<multi-routing-engine-item>
<re-name>node1</re-name>
<alarm-informationxmlns="http://xml.juniper.net/junos/ZZZ/junos-alarm">
<alarm-summary>
<active-alarm-count>2</active-alarm-count>
</alarm-summary>
<alarm-detail>
<alarm-timejunos:seconds="1685967777">2023-06-05 12:22:57 UTC</alarm-time>
<alarm-class>Minor</alarm-class>
<alarm-description>Autorecovery information needs to be saved</alarm-description>
<alarm-short-description>autorecovery-save-r</alarm-short-description>
<alarm-type>Autorecovery</alarm-type>
</alarm-detail>
<alarm-detail>
<alarm-timejunos:seconds="1685967777">2023-06-05 12:22:57 UTC</alarm-time>
<alarm-class>Minor</alarm-class>
<alarm-description>Rescue configuration is not set</alarm-description>
<alarm-short-description>no-rescue</alarm-short-description>
<alarm-type>Configuration</alarm-type>
</alarm-detail>
</alarm-information>
</multi-routing-engine-item>
</multi-routing-engine-results>
<cli>
<banner>{primary:node0}</banner>
</cli>
</rpc-reply>
# HELP junos_alarms_red_count Number of red alarms (not silenced)
# TYPE junos_alarms_red_count gauge
junos_alarms_red_count{target="TARGET"} 0
# HELP junos_alarms_yellow_count Number of yollow alarms (not silenced)
# TYPE junos_alarms_yellow_count gauge
junos_alarms_yellow_count{target="TARGET"} 0
# HELP junos_collect_duration_seconds Duration of a scrape by collector and target
# TYPE junos_collect_duration_seconds gauge
junos_collect_duration_seconds{collector="Alarm",target="TARGET"} 6.111589375
# HELP junos_collector_duration_seconds Duration of a collector scrape for one target
# TYPE junos_collector_duration_seconds gauge
junos_collector_duration_seconds{target="TARGET"} 6.111599
# HELP junos_up Scrape of target was successful
# TYPE junos_up gauge
junos_up{target="TARGET"} 1
The text was updated successfully, but these errors were encountered:
This implements handling of multi-RE alarm responses, fixing czerwonk#216.
It also introduces a few test cases to ensure multi-RE systems are being
handled properly in the future.
single-RE `show system alarms`
single-RE `show chassis alarms`
single-RE exporter output
multi-RE `show system alarms`
multi-RE `show chassis alarms`
multi-RE exporter output
The text was updated successfully, but these errors were encountered: