How to put percentile promQL query on recording counter

22 views
Skip to first unread message

Nitin Singla

unread,
Apr 8, 2020, 5:27:02 PM4/8/20
to Prometheus Users
Hi Team,

I am new to Prometheus and recently configured NGINX logs storage into prometheus via few recording rules. One of the rule is below where I am recording API-response-time average. I am using Grafana to see the graphs.

  - record: node_api:request_time:avg_
    expr: avg by (host, request) (nginx_access_log_request_time{request =~ "/api.*"})

Now I want to know the 'average API response time for 95% request' which I guess is 95percentile.

Could you please help me in making promQL query to achieve this?

Thanks a lot in advance for help.

regards,
Nitin

Nitin Singla

unread,
Apr 13, 2020, 12:39:07 AM4/13/20
to Prometheus Users
Hi Team,

Could anyone please spare time for my request?

Br, Nitin
Reply all
Reply to author
Forward
0 new messages