try other uom because icinga / graphana do shit with this

This commit is contained in:
2025-02-28 21:48:56 +01:00
parent 6f0655e8fe
commit 4294372e41

View File

@@ -46,8 +46,8 @@ class SpeedtestResource(nagiosplugin.Resource):
logging.debug(f'used server: {self.test.results.server}')
yield nagiosplugin.Metric(name='download', value=round(to_mb(self.test.results.download), 2), uom=' mb/s', context='download_scalar_context')
yield nagiosplugin.Metric(name='upload', value=round(to_mb(self.test.results.upload), 2), uom=' mb/s', context='upload_scalar_context')
yield nagiosplugin.Metric(name='download', value=round(to_mb(self.test.results.download), 2), uom='mbps', context='download_scalar_context')
yield nagiosplugin.Metric(name='upload', value=round(to_mb(self.test.results.upload), 2), uom='mbps', context='upload_scalar_context')
yield nagiosplugin.Metric(name='ping', value=self.test.results.ping, uom='ms', context='ping_scalar_context')