try other uom because icinga / graphana do shit with this
This commit is contained in:
@@ -46,8 +46,8 @@ class SpeedtestResource(nagiosplugin.Resource):
|
|||||||
|
|
||||||
logging.debug(f'used server: {self.test.results.server}')
|
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='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=' mb/s', context='upload_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')
|
yield nagiosplugin.Metric(name='ping', value=self.test.results.ping, uom='ms', context='ping_scalar_context')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user