diff options
Diffstat (limited to 'overlays/cake-prometheus-exporter')
-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') |