Skip to content
Snippets Groups Projects
Commit 327a66bb authored by Simon Crowle's avatar Simon Crowle
Browse files

Adds MINIO HTTP response time average metric to inputs test

parent 98e52d72
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ from influxdb import InfluxDBClient
('mongo'),
('ffmpeg'),
('host'),
('minio')
])
def test_service_name(telegraf_agent_config, service_name):
assert any(s['name'] == service_name for s in telegraf_agent_config['hosts']), "{0} not in list of hosts".format(service_name)
......@@ -63,7 +64,9 @@ def test_ping(telegraf_agent_config):
('net', 'SELECT mean("bytes_sent") AS "mean" FROM "CLMCMetrics"."autogen"."net"', 0),
('disk', 'SELECT mean("free") AS "mean" FROM "CLMCMetrics"."autogen"."disk"', 0),
('diskio', 'SELECT mean("write_bytes") AS "mean" FROM "CLMCMetrics"."autogen"."diskio"', 0),
('mem', 'SELECT mean("free") AS "mean" FROM "CLMCMetrics"."autogen"."mem"', 0)
('mem', 'SELECT mean("free") AS "mean" FROM "CLMCMetrics"."autogen"."mem"', 0),
# Report the average change in difference of MINIO's HTTP response time (the inner query determines a rolling difference between sampling periods [respTimeDiff])
('minio_http_requests_duration_seconds', 'select mean("respTimeDiff") as "mean" from (select difference(max("sum")) as "respTimeDiff" from "CLMCMetrics"."autogen"."minio_http_requests_duration_seconds" where time > 0 group by time(10s))',0)
])
def test_all_inputs(influxdb, measurement, query, expected_result):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment