我试图向VictoriaMetrix发送APIC HTTP(来自 p和Insomnia-同样的问题)的请求,但我不同意通过该调查得到的答复。
www.un.org/Depts/DGACM/index_spanish.htm VictoriaMetrcis
PromQL request:
avg_over_time(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{container="test"}[1m])
From 2024-01-17 03:00:00, To 2024-01-17 03:30:00
Result: "value": [
1705451400,
"0.23692520737666"]
<>Insomnia
GET: http://my-test-victoria.com:8000/api/v1/query
Query:
query = avg_over_time(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{container="test"}[1m])
time = 2024-01-17T03:00:00.00Z
Result: "value": [
1705460400,
"0.01631004441833"]
www.un.org/Depts/DGACM/index_spanish.htm 灰色密码碎块(使用图书馆“requests”与APIC联系)
request_params = {
"query": query[ query ],
"time": input_datetime
}
responce = http_request(prometheus_common[ url ] + "/api/v1/query", request_params)
Question
What am I doing wrong? Result in UI is correct, but HTTP-requests is not.