Re: [prometheus-users] Querying prometheus data/series.

2021-01-05 Thread akshay sharma
Thank you for the clarification. I was doing some operation on instant vectors as well as on range vectors using a PROMQL query. I have one query while performing operation on an instant vector. For ex: node_value{ID="1",instance="xx.xxx.xx.xx:x",job="prometheus",node="node1"} 32 @1608811039.84

Re: [prometheus-users] Querying prometheus data/series.

2020-12-24 Thread Stuart Clark
On 24/12/2020 11:37, akshay sharma wrote: 5:04 PM (0 minutes ago) I understood your point Now i've one metric and with multiple values updating like every minute, if you range over you will see all the values. byte{ID="1",instance="localhost:8999",job="prometheus",queue="tx"

Re: [prometheus-users] Querying prometheus data/series.

2020-12-24 Thread akshay sharma
5:04 PM (0 minutes ago) I understood your point Now i've one metric and with multiple values updating like every minute, if you range over you will see all the values. byte{ID="1",instance="localhost:8999",job="prometheus",queue="tx"} 16 @1608808879.845 17 @1608808909.845 17 @1608808939.845 18 @16

Re: [prometheus-users] Querying prometheus data/series.

2020-12-24 Thread Stuart Clark
On 24/12/2020 05:53, akshay sharma wrote: Thanks for the clarification, What if,there is multiple metrics with same labels but different values ex: STAT{METype="NT",ResourceID="t",queue="rx",time="1608786795151775007"} 31 STAT{METype="NT",ResourceID="t",queue="rx",time="1608786795151813374"}

Re: [prometheus-users] Querying prometheus data/series.

2020-12-23 Thread akshay sharma
Thanks for the clarification, What if,there is multiple metrics with same labels but different values ex: STAT{METype="NT",ResourceID="t",queue="rx",time="1608786795151775007"} 31 STAT{METype="NT",ResourceID="t",queue="rx",time="1608786795151813374"} 32 STAT{METype="NT",ResourceID="t",queue="rx",

Re: [prometheus-users] Querying prometheus data/series.

2020-12-23 Thread Stuart Clark
On 23/12/2020 15:18, akshay sharma wrote: Hi Christian, Thanks for you reply, ONTSTAT{IDF="false",Interval="0",METype="NT",ResourceID="t",instance="localhost:8999 ",job="prometheus",rxByte="33",time="1608711202557257990",txByte="18"}  4 what i've understood from

Re: [prometheus-users] Querying prometheus data/series.

2020-12-23 Thread akshay sharma
Hi Christian, Thanks for you reply, ONTSTAT{IDF="false",Interval="0",METype="NT",ResourceID="t",instance="localhost :8999 ",job="prometheus",rxByte="33",time="1608711202557257990",txByte="18"} 4 what i've understood from your reply is , you are saying to break the

Re: [prometheus-users] Querying prometheus data/series.

2020-12-23 Thread Christian Hoffmann
On 2020-12-23 09:53, akshay sharma wrote: ONTSTAT{IDF="false",Interval="0",METype="NT",ResourceID="t",instance="172.27.173.103:8999 ",job="prometheus",rxByte="33",time="1608711202557257990",txByte="18"} 3 1) I want to perform some action on the labels of metrics above, how can we achieve thi

[prometheus-users] Querying prometheus data/series.

2020-12-23 Thread akshay sharma
Hi, I'm using prometheus golang library to push metrics to prometheus in prometheus format. For ex: # HELP STAT unistats # TYPE STAT gauge STAT{IDF="false",Interval="0",Type="NT",ResourceID="t",rxByte="31",time="1608712842316890688",txByte="16"} 1 STAT{IDF="false",Interval="0",Type="NT",Resourc