Thanks Brian.

Taking the above example. If I supply below json:
{
   "groups": [
      {
         "name": "example",
         "rules": [
            {
               "record": "job:http_inprogress_requests:sum",
               "expr": "sum by (job) (http_inprogress_requests)"
            }
         ]
      }
   ]
}

Consul doesn't pick it up. While below just works fine.
[
            {
               "record": "job:http_inprogress_requests:sum",
               "expr": "sum by (job) (http_inprogress_requests)"
            }
         ]

On Tuesday, September 1, 2020 at 5:05:52 AM UTC-4 [email protected] wrote:

> On Tuesday, 1 September 2020 03:20:18 UTC+1, Jo wrote:
>>
>> If I supply an array of rules it works but If I supply an array of groups 
>> it doesn't work.
>>
>
> Please show the two configurations so we can compare them.  Also explain 
> exactly what you mean by "it doesn't work".
>
> Note that in the example you've posted, you have an array of groups *and* 
> an array of rules (both arrays being of size 1)
>

-- 
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/266222b3-b9b1-4215-bfc4-0288d72adbf2n%40googlegroups.com.

Reply via email to