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

Duplicated entries for a given Producer and time #4

Open
michaelhsieh42 opened this issue Apr 1, 2019 · 1 comment
Open

Duplicated entries for a given Producer and time #4

michaelhsieh42 opened this issue Apr 1, 2019 · 1 comment

Comments

@michaelhsieh42
Copy link

Hi,
I am seeing lots of entries at a given timepoint for a given producer. I am not sure why this is happening. Roughly half of the timepoints are duplicates. Could you please help clarify? Below is an example from the data in 3/.

df_3=pd.read_csv('../Data/cisco_telemetry/3/bgpclear08042017.csv', low_memory = False).dropna(axis=1, how='all')
df_3['time'] = pd.to_datetime(df_3['time'].astype('int'), unit='ns')
df_3.query('Producer == "leaf2"').sort_values('time')[['bytes-received','time', 'name', 'EncodingPath']].tail(10)

image

df_3.query('Producer == "leaf2"')['time'].shape[0], df_3.query('Producer == "leaf2"')['time'].unique().shape[0]

out: (31080, 17340)

@apletcher
Copy link
Collaborator

The telemetry output for the generic counters is collected by device and interface. the yang sensor path you are querying includes the producer, bytes received and the interface in which these bytes are received . If you add by interface_name to your query you will see that these records are not duplicates.

@apletcher apletcher reopened this Apr 4, 2019
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

No branches or pull requests

2 participants