correct circuit name

This commit is contained in:
Robert Chacón 2022-09-11 20:38:15 -06:00 committed by GitHub
parent 5fa58d79a9
commit 45fa959810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,13 +145,13 @@ def refreshBandwidthGraphs():
percentUtilizationDownload = round((bitsDownload / round(circuit['downloadMax']*1000000)),4)
percentUtilizationUpload = round((bitsUpload / round(circuit['uploadMax']*1000000)),4)
p = Point('Bandwidth').tag("Circuit", circuit['hostname']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Download", bitsDownload)
p = Point('Bandwidth').tag("Circuit", circuit['circuitName']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Download", bitsDownload)
queriesToSend.append(p)
p = Point('Bandwidth').tag("Circuit", circuit['hostname']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Upload", bitsUpload)
p = Point('Bandwidth').tag("Circuit", circuit['circuitName']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Upload", bitsUpload)
queriesToSend.append(p)
p = Point('Utilization').tag("Circuit", circuit['hostname']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Download", percentUtilizationDownload)
p = Point('Utilization').tag("Circuit", circuit['circuitName']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Download", percentUtilizationDownload)
queriesToSend.append(p)
p = Point('Utilization').tag("Circuit", circuit['hostname']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Upload", percentUtilizationUpload)
p = Point('Utilization').tag("Circuit", circuit['circuitName']).tag("ParentNode", circuit['ParentNode']).tag("Type", "Circuit").field("Upload", percentUtilizationUpload)
queriesToSend.append(p)
for parentNode in parentNodes: