Code

plugin: Dynamically populate timeseries information when querying metrics.
[sysdb.git] / t / integration / query_timeseries.sh
index f6d09cb4648e12dfb3bc2ce6946de3b985f0ad60..31454b4d71c648a0f817027569d06462def92ae1 100755 (executable)
@@ -68,6 +68,11 @@ wait_for_sysdbd "${SOCKET_FILE}.sender"
 # wait for initial data
 sleep 3
 
+# Check data-source names.
+output="$( run_sysdb -H "$SOCKET_FILE" \
+       -c "FETCH metric 'some.host.name'.'foo/bar/qux'" )"
+echo "$output" | grep -F '"data_names": ["nameA", "nameB"]'
+
 # TIMESERIES commands.
 run_sysdb -H "$SOCKET_FILE" \
                -c "TIMESERIES 'invalid.host'.'invalid-metric'" && exit 1