data: "alertmanager_alerts{instance=\"demo.robustperception.io:9093\",job=\"alertmanager\",state=\"active\"} 4\nalertmanager_alerts{instance=\"demo.robustperception.io:9093\",job=\"alertmanager\",state=\"active\"} 5\n # test alertmanager_alerts test"
test case: 'Simple metric using params: wmi_os_physical_memory_free_bytes'
data: wmi_os_physical_memory_free_bytes 8.492331008e+09
params: wmi_os_physical_memory_free_bytes
- name: wmi_os_physical_memory_free_bytes
line_raw: wmi_os_physical_memory_free_bytes 8.492331008e+09
test case: 'Get metric using params: cpu_usage_system{cpu="cpu-total"}'
# HELP cpu_usage_system Telegraf collected metric
# TYPE cpu_usage_system gauge
cpu_usage_system{cpu="cpu-total"} 1.1940298507220641
cpu_usage_system{cpu="cpu0"} 1.1940298507220641
cpu_usage_system{cpu="cpu1"} 1.1340298507220641
params: cpu_usage_system{cpu="cpu-total"}
value: 1.1940298507220641
line_raw: cpu_usage_system{cpu="cpu-total"} 1.1940298507220641
help: Telegraf collected metric
test case: 'Get metric using params: wmi_logical_disk_free_bytes{volume="{#VOLUME}"}'
# HELP wmi_logical_disk_free_bytes Free space in bytes (LogicalDisk.PercentFreeSpace)
# TYPE wmi_logical_disk_free_bytes gauge
wmi_logical_disk_free_bytes{volume="{#VOLUME}"} 3.5180249088e+11
wmi_logical_disk_free_bytes{volume="D:"} 2.627731456e+09
wmi_logical_disk_free_bytes{volume="HarddiskVolume4"} 4.59276288e+08
params: 'wmi_logical_disk_free_bytes{volume="{#VOLUME}"}'
- name: wmi_logical_disk_free_bytes
line_raw: 'wmi_logical_disk_free_bytes{volume="{#VOLUME}"} 3.5180249088e+11'
help: Free space in bytes (LogicalDisk.PercentFreeSpace)
test case: 'Get metric value using params: cpu_usage_system{cpu="cpu-total",host=~".*"}'
# HELP cpu_usage_system Telegraf collected metric
# TYPE cpu_usage_system gauge
cpu_usage_system{cpu="cpu-total",host="host1"} 1.1940298507220641
cpu_usage_system{cpu="cpu0",host="host1"} 1.1940298507220641
cpu_usage_system{cpu="cpu1",host="host1"} 1.1340298507220641