Update 1:
I understand it's not time-series data. The purpose is to avoid using the timestamp of the metrics since I'd like to specify an hour in the past.
I have some metrics that indicate the number of products being produced in a given hour.
some_metric{"hour"="1" "product"="a"} 5
some_metric{"hour"="2" "product"="a"} 7
some_metric{"hour"="1" "product"="b"} 3
some_metric{"hour"="2" "product"="b"} 2
The first metric interprets as 5 of product "a" is produced in hour=1
Now I'd like to make a chart in Grafana that uses the hour as x-axis and metric value as y-axis. In this case, I'd expect two lines (each represents the production of a and b respectively) on the same chart.
Any hints?
Thanks a lot.