telemetry icon indicating copy to clipboard operation
telemetry copied to clipboard

Duplicated entries for a given Producer and time

Open michaelhsieh42 opened this issue 5 years ago • 1 comments

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)

michaelhsieh42 avatar Apr 01 '19 15:04 michaelhsieh42

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 avatar Apr 04 '19 23:04 apletcher