VictoriaMetrics / grafana-datasource

Grafana Plugin for VictoriaMetrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Query Raw data

TomasVojacek opened this issue · comments

We are using victoria-metric for event logs.
event{eventType="1",deviceId="abcd"} 1
Data are spare.
We need display all raw sample for deviceId="abcd" and keep original timestamp. If query return too much data, we need to truncate result instead of grouping.
query_range round timestamp and group date according interval.
Would it be possible to do query on /export api as alternative to query_range?
I'm aware that export api use different syntax and is more limited.

Hi @TomasVojacek! You can get raw data right in Grafana with the following query:

event{eventType="1",deviceId="abcd"}[1m]

This query ^ will return raw values for the last 1m when sent to /query API
see example here.