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

add rates TX and RX BPS and PPS to telemetry gnmi #142

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aseaudi
Copy link

@aseaudi aseaudi commented Aug 5, 2023

Why I did it

We need in telemetry TX and RX BPS and PPS

How I did it

Added in telemetry new options for mapping the RATES table in REDIS COUNTERS_DB

How to verify it

manual test using gnmi client to the new virtual paths

Description for the changelog

Added new virtual paths for TX and RX BPS and PPS in telemetry gnmi
examples:
RATES/Ethernet1/RX_BPS
RATES/Ethernet1/RX_PPS
RATES/Ethernet1/TX_BPS
RATES/Ethernet1/TX_PPS

How to test it

gnmi_get -xpath_target COUNTERS_DB -xpath RATES/Ethernet1 -target_addr 127.0.0.1:8080 -notls

== getRequest:
prefix: <
target: "COUNTERS_DB"

path: <
elem: <
name: "RATES"

elem: <
name: "Ethernet1"

elem: <
name: "RX_BPS"

encoding: JSON_IETF

== getResponse:
notification: <
timestamp: 1691002490789736143
prefix: <
target: "COUNTERS_DB"

update: <
path: <
elem: <
name: "RATES"
>
elem: <
name: "Ethernet1"
>
elem: <
name: "RX_BPS"
>
>
val: <
string_val: "0"
>

== getRequest:
prefix: <
target: "COUNTERS_DB"

path: <
elem: <
name: "RATES"

elem: <
name: "Ethernet1"

elem: <
name: "RX_PPS"

encoding: JSON_IETF

== getResponse:
notification: <
timestamp: 1691002497547321105
prefix: <
target: "COUNTERS_DB"

update: <
path: <
elem: <
name: "RATES"
>
elem: <
name: "Ethernet1"
>
elem: <
name: "RX_PPS"
>
>
val: <
string_val: "0"
>

== getRequest:
prefix: <
target: "COUNTERS_DB"

path: <
elem: <
name: "RATES"

elem: <
name: "Ethernet1"

elem: <
name: "TX_BPS"

encoding: JSON_IETF

== getResponse:
notification: <
timestamp: 1691002505032332775
prefix: <
target: "COUNTERS_DB"

update: <
path: <
elem: <
name: "RATES"
>
elem: <
name: "Ethernet1"
>
elem: <
name: "TX_BPS"
>
>
val: <
string_val: "0"
>

== getRequest:
prefix: <
target: "COUNTERS_DB"

path: <
elem: <
name: "RATES"

elem: <
name: "Ethernet1"

elem: <
name: "TX_PPS"

encoding: JSON_IETF

== getResponse:
notification: <
timestamp: 1691002510736128394
prefix: <
target: "COUNTERS_DB"

update: <
path: <
elem: <
name: "RATES"
>
elem: <
name: "Ethernet1"
>
elem: <
name: "TX_PPS"
>
>
val: <
string_val: "0"
>

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 5, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@molssongroup
Copy link

/easycla

@rlucus
Copy link
Contributor

rlucus commented Sep 7, 2023

I see no specific issue with this change, but is there an Issue or been a discussion about the necessity of it?

Copy link
Contributor

@rlucus rlucus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an Issue number associated with this change?

@aseaudi
Copy link
Author

aseaudi commented Oct 12, 2023

i can raise an issue, if needed

@aseaudi aseaudi changed the title add rates add rates TX and RX BPS and PPS to telemetry gnmi #166 Oct 13, 2023
@aseaudi aseaudi changed the title add rates TX and RX BPS and PPS to telemetry gnmi #166 add rates TX and RX BPS and PPS to telemetry gnmi Oct 13, 2023
@aseaudi
Copy link
Author

aseaudi commented Oct 13, 2023

resolves #166

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.

3 participants