Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated rule to incLude level in xpath (GNATS 1819399) #1005

Open
wants to merge 1 commit into
base: jcloud
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 162 additions & 20 deletions juniper_official/routing/check-isis-statistics.rule
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
frequency 60s;
}
}
sensor isis-sensor-level {
synopsis "ISIS open-config sensor definition";
description "Open-config sensor to collect telemetry data from network device";
open-config {
sensor-name /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/;
frequency 60s;
}
}
/*
* Fields defined using sensor path. Map the longer sensor names
* to the shorter field names used in the rules.
Expand All @@ -48,26 +56,35 @@
sensor isis-sensor {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/packet-counters/csnp/state/dropped;
zero-suppression;
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/csnp/state/dropped;
}
type integer;
description "Number of csnp drops";
}
field esh-drops {
sensor isis-sensor {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/packet-counters/esh/state/dropped;
zero-suppression;
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/esh/state/dropped;
}
type integer;
description "Number of esh drops";
}
field iih-drops {
sensor isis-sensor {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/packet-counters/iih/state/dropped;
zero-suppression;
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/iih/state/dropped;
}
type integer;
description "Number of iih drops";
}
Expand All @@ -76,33 +93,46 @@
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id";
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id";
}
type string;
description "Interfaces to be monitored";
}
field ish-drops {
sensor isis-sensor {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/packet-counters/ish/state/dropped;
zero-suppression;
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/ish/state/dropped;
}
type integer;
description "Number of ish drops";
}
field lsp-drops {
sensor isis-sensor {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/packet-counters/lsp/state/dropped;
zero-suppression;
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/lsp/state/dropped;
}
type integer;
description "Number of lsp drops";
}
field psnp-drops {
sensor isis-sensor {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/packet-counters/psnp/state/dropped;
zero-suppression;
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/psnp/state/dropped;
}
type integer;
description "Number of psnp drops";
}
Expand All @@ -117,8 +147,11 @@
sensor isis-sensor {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/packet-counters/unknown/state/dropped;
zero-suppression;
}
sensor isis-sensor-level {
where "/network-instances/network-instance/protocols/protocol/isis/interfaces/interface/@interface-id =~ /{{interface-name}}/";
path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/unknown/state/dropped;
}
type integer;
description "Number of unknown drops";
}
Expand Down Expand Up @@ -436,74 +469,183 @@
is-scaling-rule {
description "Fields:interface-name ; Directly impacted by number of interfaces running in each network device";
}
supported-healthbot-version 1.0.1;
supported-healthbot-version 2.3.0;
supported-devices {
juniper {
operating-system junos {
products MX {
sensors isis-sensor;
platforms MX240 {
releases 17.4R1 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms MX480 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms MX960 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms MX2010 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms MX2020 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
}
products PTX {
platforms PTX5000 {
products JNP {
sensors isis-sensor;
platforms JNP10004 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms PTX1000 {
platforms JNP10008 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms PTX10000 {
platforms JNP10016 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
}
products ACX {
platforms All {
releases 22.1R1 {
}
}
products PTX {
sensors isis-sensor;
platforms PTX10008 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 17.4R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
}
products EX {
sensors isis-sensor;
platforms EX4300-48MP {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
}
platforms EX9204 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
}
}
}
operating-system junosEvolved {
products ACX {
platforms All {
sensors isis-sensor;
platforms ACX7024 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 22.3R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms ACX7024X {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 22.3R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms ACX7100 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 22.3R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms ACX7348 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 22.3R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
platforms ACX7509 {
releases 23.2R1 {
sensors isis-sensor-level;
release-support min-supported-release;
}
releases 22.3R1 {
sensors isis-sensor;
release-support min-supported-release;
}
}
}
}
}
}
}
}
}
}
}