Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Alexander_Wilke
Advisor

Which metric shows interface "admin state" up/down and link-state up/down?

Hello,

 

I want to monitor my ports. If a port has admin state down and link state is down 8of course) this is "OK".

If I have a port which is "admin up" but link state is down than this is unexpected.

 

Which metric can I use for this? Running Prometheus TSDB to collect the data.

 

Im am running R81.20.

0 Kudos
1 Reply
Alexander_Wilke
Advisor

Unfortunately there is still no label or metric which shows the "link state" of an interface,

However I found out that the label "speed" does not exist or is empty if the "link state" is down. This allows me to check if the interfaces metric for admin state is "up" and "speed" is empy to identify the interface is down.

 

This does not work for the MHO interfaces.

 

 

### metric value == 1 if interface admin state up / enabled
### if value of label "speed" does not have any value
### the interface is admin up, link state down.
### I do not care avout the "lo" interface and exclude it
 (system_network_interface_state{host_name!~".*mho.*", name!~"lo", speed!~".+"} == 1)
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events