diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-11 12:57:26 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-11 12:57:26 +0100 |
commit | 9f7d756b3b4a140309e87adb06de001ef82029d8 (patch) | |
tree | 17f529285d35eacb858f66f9702e552e110d56ee /overlays/cake-prometheus-exporter/cake-prometheus-exporter.py | |
parent | 2c078c033a8e86e764fcebe021a2957e3fc035a7 (diff) | |
download | nixos-9f7d756b3b4a140309e87adb06de001ef82029d8.tar nixos-9f7d756b3b4a140309e87adb06de001ef82029d8.tar.gz nixos-9f7d756b3b4a140309e87adb06de001ef82029d8.tar.bz2 nixos-9f7d756b3b4a140309e87adb06de001ef82029d8.tar.xz nixos-9f7d756b3b4a140309e87adb06de001ef82029d8.zip |
...
Diffstat (limited to 'overlays/cake-prometheus-exporter/cake-prometheus-exporter.py')
-rw-r--r-- | overlays/cake-prometheus-exporter/cake-prometheus-exporter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py b/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py index 06e03469..56820a56 100644 --- a/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py +++ b/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py | |||
@@ -87,8 +87,8 @@ class CAKEMetrics: | |||
87 | for packet_counter in ['packets', 'overlimits', 'requeues', 'drops']: | 87 | for packet_counter in ['packets', 'overlimits', 'requeues', 'drops']: |
88 | metrics += _format_prom_metrics(f'cake_{packet_counter}', 'counter', [({'dev': dev}, self.attrs[dev][packet_counter]) for dev in self.attrs]) | 88 | metrics += _format_prom_metrics(f'cake_{packet_counter}', 'counter', [({'dev': dev}, self.attrs[dev][packet_counter]) for dev in self.attrs]) |
89 | 89 | ||
90 | metrics += _format_prom_metrics('cake_tin_bytes', 'counter', [({'dev': dev, 'tin': tin}, self.attrs[dev]['tins'][tin]['bytes']) for tin in self.attrs[dev]['tins'] for dev in self.attrs]) | 90 | metrics += _format_prom_metrics('cake_tin_bytes', 'counter', [({'dev': dev, 'tin': tin}, self.attrs[dev]['tins'][tin]['bytes'] for dev in self.attrs) for tin in self.attrs[dev]['tins']]) |
91 | metrics += _format_prom_metrics('cake_tin_packets', 'counter', [({'dev': dev, 'tin': tin}, self.attrs[dev]['tins'][tin]['packets']) for tin in self.attrs[dev]['tins'] for dev in self.attrs]) | 91 | metrics += _format_prom_metrics('cake_tin_packets', 'counter', [({'dev': dev, 'tin': tin}, self.attrs[dev]['tins'][tin]['packets']) for dev in self.attrs for tin in self.attrs[dev]['tins']]) |
92 | 92 | ||
93 | return metrics.encode('utf-8') | 93 | return metrics.encode('utf-8') |
94 | 94 | ||