Hi,

That query itself should be ok, but if you get a JSON parsing error for the
response coming back from Prometheus, that can indeed mean that your
Prometheus died as a result of an OOM and whatever is in front of it
returns invalid JSON in that case... probably no way to make it work
without giving your Prometheus more memory, if that's the problem. Btw. you
could switch '=~".+"' with "!=""' to get rid of regex matching, but that
shouldn't make a difference.

Regards,
Julius

On Wed, Aug 3, 2022 at 2:25 PM Random Person <[email protected]>
wrote:

> Running into more OOM problems, and trying to use topk(10, count by
> (__name__, job)({__name__=~".+"})) . However the query always returns the
> following "Error executing query: Unexpected token i in JSON at position 1"
> . Is the only way to get data from this to increase query time limits ?
>
> Thanks!
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/0e08a267-7180-4ec2-8ab0-72146371641bn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/0e08a267-7180-4ec2-8ab0-72146371641bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Julius Volz
PromLabs - promlabs.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAObpH5xsccvHLA7DdYqRac5o%3DE951OV8FRGD7V3OO9YpfKbGXw%40mail.gmail.com.

Reply via email to