Thanks Brian, 
I realy make one request per call,
My problem now is,

For this request

query=a100_001_FT_DACA_PV 

Json return this
{
    "status": "success",
    "data": {
        "resultType": "vector",
        "result": [
            {
                "metric": {
                    *"__name__": "a100_001_FT_DACA_PV",*
                    "instance": "172.115.0.25:4242",
                    "job": "prometheus"
                },
                "value": [
                    1636486652.982,
                    "597.5383929357245"
                ]
            }
        ]
    }
}

An for this query:
query= avg_over_time(E001_C04_kW[1h])
This ...
{
    "status": "success",
    "data": {
        "resultType": "vector",
        "result": [
            {
                "metric": {
                    "instance": "172.115.0.20:5001",
                    "job": "prometheus"
                },
                "value": [
                    1636486694.982,
                    "23354.967702907958"
                ]
            }
        ]
    }
}

Note output of query= avg_over_time(E001_C04_kW[1h]) a key * __name__* 
doenst return, how to force this query returning key *__name__ *in result ? 

Best Regards 
Em terça-feira, 9 de novembro de 2021 às 16:11:34 UTC-3, Brian Candler 
escreveu:

> As far as I know, the HTTP API only supports one request per call.
>
> In fact, really you have three queries, so you should be making three HTTP 
> requests:
>
> query=a100_001_FT_DACA_PV
> query=a101_401_0_PIC_PIDA_PV
> query=avg_over_time(E002_C04_kW[1h])/1000
>

-- 
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/81621802-0680-4196-85c3-9a4a723e0c2fn%40googlegroups.com.

Reply via email to