-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Integrate SHOW API probe into telemetry watchdog #24053
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
Changes from 4 commits
0646dd7
6d9a9e2
3430b63
c567150
341bb60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| {% from "dockers/dockerfile-macros.j2" import install_debian_packages, install_python_wheels, copy_files %} | ||
| ARG BASE=docker-config-engine-bookworm-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}} | ||
| ARG BASE=docker-sonic-gnmi-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. better to add DEPENDS in rule to make sure GNMI is built first for this.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed |
||
|
|
||
| FROM $BASE AS builder | ||
|
|
||
|
|
@@ -36,6 +36,7 @@ COPY ["supervisord.conf", "/etc/supervisor/conf.d/"] | |
| # Copy the compiled Rust binary from the builder stage | ||
| COPY --from=builder /watchdog/target/release/telemetry_watchdog /usr/bin/telemetry_watchdog | ||
| RUN chmod +x /usr/bin/telemetry_watchdog | ||
| COPY --from=builder /watchdog/src/cmd_list.json /cmd_list.json | ||
|
|
||
| FROM $BASE | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| { | ||
| "xpaths": [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Issue with this is that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
You are right, the commands with parameters are complicated, we don't plan to support for now, we support these common xpath at this stage. We can add more xpath with specific fixed parameters as you mentioned if we need later. |
||
| "buffer_pool/persistent-watermark", | ||
| "buffer_pool/watermark", | ||
| "clock", | ||
| "clock/timezones", | ||
| "dropcounters/capabilities", | ||
| "dropcounters/configuration", | ||
| "dropcounters/counts", | ||
| "ecn", | ||
| "headroom-pool/persistent-watermark", | ||
| "headroom-pool/watermark", | ||
| "interfaces/alias", | ||
| "interfaces/counters", | ||
| "interfaces/counters/rif", | ||
| "interfaces/description", | ||
| "interfaces/fec/status", | ||
| "interfaces/flap", | ||
| "interfaces/neighbor/expected", | ||
| "interfaces/naming_mode", | ||
| "interfaces/portchannel", | ||
| "interfaces/status", | ||
| "interfaces/switchport/config", | ||
| "interfaces/switchport/status", | ||
| "interfaces/transceiver/error-status", | ||
| "interfaces/transceiver/presence", | ||
| "interfaces/transceiver/lpmode", | ||
| "ipv6/bgp/neighbors", | ||
| "ipv6/bgp/network", | ||
| "ipv6/bgp/summary", | ||
| "ipv6/fib", | ||
| "ipv6/interfaces", | ||
| "ipv6/link-local-mode", | ||
| "ipv6/prefix-list", | ||
| "ipv6/protocol", | ||
| "ipv6/route", | ||
| "lldp/neighbors", | ||
| "lldp/table", | ||
| "mac", | ||
| "mac/aging-time", | ||
| "mmu", | ||
| "processes", | ||
| "processes/memory", | ||
| "processes/summary", | ||
| "queue/counters", | ||
| "queue/wredcounters", | ||
| "queue/watermark", | ||
| "queue/watermark/all", | ||
| "queue/watermark/unicast", | ||
| "queue/watermark/multicast", | ||
| "reboot-cause/history", | ||
| "services", | ||
| "srv6/stats", | ||
| "system-memory", | ||
| "uptime", | ||
| "version", | ||
| "vlan/brief", | ||
| "watermark/telemetry/interval" | ||
| ] | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
Integrate SHOW API probe into telemetry watchdog. We want the watch dog can catch the bad SHOW command implement.
->
Integrate SHOW API probe into telemetry watchdog. We want the watchdog to catch the bad SHOW command implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed.