Re: [prometheus-users] Answer from prometheus contains real measurements?

2021-02-03 Thread Rodolphe Ghio
Thank you for your clarification, have a great day

Le mercredi 3 février 2021 à 12:28:03 UTC-5, matt...@prometheus.io a écrit :

> The query range API returns aligned and interpolated values. I believe you 
> can get "raw" samples by using the instant query API and querying for a 
> matrix like
>
>
> memstats_memory_usage_percent{job=~"67ing-at-home.*"}[10m]
>
> /MR
>
> On Wed, 3 Feb 2021, 17:44 Rodolphe Ghio,  wrote:
>
>> Hello,
>> I have a question in relation to the answers provided by prometheus in a 
>> classic promQL query.
>> Are the "points" present in prometheus' answer true measurements? Or are 
>> they "false" points resulting from various calculations?
>>
>> *example of a request :*
>>
>> /api/v1/query_range?query=memstats_memory_usage_percent{job=~"67ing-at-home.*"}=1612345793.908=1612367393.908=165
>>
>> *example of a response: *
>>
>> {"status":"success","data":{"resultType":"matrix","result":[{"metric":{"__name__":"memstats_memory_usage_percent","instance":"xxx","job":"67ing-at-home"},"values":[[1612366470,"0.00623712419938"],[1612366635,"0.00624413695339"],[1612366800,"0.00624701890709"],[1612366965,"0.00624740316758"],[1612367130,"0.00624740316758"]]}]}}
>>
>> King regards,
>> GHIO Rodolphe
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Prometheus Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to prometheus-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/ca10eaa8-e9d4-4385-8ac2-71de5676a8c8n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/59591872-3d8b-4709-80fc-b338ee093997n%40googlegroups.com.


Re: [prometheus-users] Answer from prometheus contains real measurements?

2021-02-03 Thread Matthias Rampke
The query range API returns aligned and interpolated values. I believe you
can get "raw" samples by using the instant query API and querying for a
matrix like


memstats_memory_usage_percent{job=~"67ing-at-home.*"}[10m]

/MR

On Wed, 3 Feb 2021, 17:44 Rodolphe Ghio,  wrote:

> Hello,
> I have a question in relation to the answers provided by prometheus in a
> classic promQL query.
> Are the "points" present in prometheus' answer true measurements? Or are
> they "false" points resulting from various calculations?
>
> *example of a request :*
>
> /api/v1/query_range?query=memstats_memory_usage_percent{job=~"67ing-at-home.*"}=1612345793.908=1612367393.908=165
>
> *example of a response: *
>
> {"status":"success","data":{"resultType":"matrix","result":[{"metric":{"__name__":"memstats_memory_usage_percent","instance":"xxx","job":"67ing-at-home"},"values":[[1612366470,"0.00623712419938"],[1612366635,"0.00624413695339"],[1612366800,"0.00624701890709"],[1612366965,"0.00624740316758"],[1612367130,"0.00624740316758"]]}]}}
>
> King regards,
> GHIO Rodolphe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to prometheus-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/ca10eaa8-e9d4-4385-8ac2-71de5676a8c8n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAMV%3D_gYXzQf--D05ZTbPZ%3DroT6v-XueP8eca11mjQy3v5Z7VJQ%40mail.gmail.com.


[prometheus-users] Answer from prometheus contains real measurements?

2021-02-03 Thread Rodolphe Ghio
Hello,
I have a question in relation to the answers provided by prometheus in a 
classic promQL query.
Are the "points" present in prometheus' answer true measurements? Or are 
they "false" points resulting from various calculations?

*example of a request :*
/api/v1/query_range?query=memstats_memory_usage_percent{job=~"67ing-at-home.*"}=1612345793.908=1612367393.908=165

*example of a response: *
{"status":"success","data":{"resultType":"matrix","result":[{"metric":{"__name__":"memstats_memory_usage_percent","instance":"xxx","job":"67ing-at-home"},"values":[[1612366470,"0.00623712419938"],[1612366635,"0.00624413695339"],[1612366800,"0.00624701890709"],[1612366965,"0.00624740316758"],[1612367130,"0.00624740316758"]]}]}}

King regards,
GHIO Rodolphe

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ca10eaa8-e9d4-4385-8ac2-71de5676a8c8n%40googlegroups.com.