diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-11 13:01:23 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-11 13:01:23 +0100 |
commit | f0609892c399279456f07bdcee086fd67cb4d2ab (patch) | |
tree | dacb29764b2f151c4347735eed2126864f6d58c8 | |
parent | 9f7d756b3b4a140309e87adb06de001ef82029d8 (diff) | |
download | nixos-f0609892c399279456f07bdcee086fd67cb4d2ab.tar nixos-f0609892c399279456f07bdcee086fd67cb4d2ab.tar.gz nixos-f0609892c399279456f07bdcee086fd67cb4d2ab.tar.bz2 nixos-f0609892c399279456f07bdcee086fd67cb4d2ab.tar.xz nixos-f0609892c399279456f07bdcee086fd67cb4d2ab.zip |
...
-rw-r--r-- | overlays/cake-prometheus-exporter/cake-prometheus-exporter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py b/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py index 56820a56..be5202d0 100644 --- a/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py +++ b/overlays/cake-prometheus-exporter/cake-prometheus-exporter.py | |||
@@ -87,7 +87,7 @@ 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 dev in self.attrs) for tin in self.attrs[dev]['tins']]) | 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 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 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') |