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

Send event as JsonIetfVal instead of StringVal #4

Merged
merged 13 commits into from
Oct 5, 2022
Merged

Conversation

renukamanavalan
Copy link
Owner

@renukamanavalan renukamanavalan commented Oct 4, 2022

Minor additional changes:

  1. Skip test event used by Switch's monit code
  2. qsize between telemetry & gNMI client is configurable.

gnmi_cli -client_types=gnmi -a 127.0.0.1:50051 -t EVENTS -logtostderr -insecure -v 7 -streaming_type ON_CHANGE -q all[heartbeat=5][qsize=1000] -qt s

Sets heartbeat to every 5 seconds
Set qsize to be 1000

Both params are optional.
Heartbeat default: Every 2 seconds
Qsize default: 10240.

To test qsize, look for the following log lines in /var/log/telemetry.log

Oct  4 21:06:44.062902 str-s6000-on-5 INFO telemetry#supervisord: telemetry I1004 21:06:44.058791      15 events_client.go:97] Events priority Q max set default = 10240
Oct  4 21:06:44.071703 str-s6000-on-5 INFO telemetry#supervisord: telemetry I1004 21:06:44.066958      15 events_client.go:115] Events priority Q max set by qsize param = 1000

@renukamanavalan renukamanavalan self-assigned this Oct 4, 2022
@renukamanavalan renukamanavalan changed the title Skip test event & qsize configurable. Send event as JsonIetfVal instead of StringVal Oct 4, 2022
@renukamanavalan renukamanavalan merged commit 9299ec7 into master Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants