Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus filtering request #230

Open
kys1230 opened this issue May 6, 2022 · 0 comments
Open

Prometheus filtering request #230

kys1230 opened this issue May 6, 2022 · 0 comments

Comments

@kys1230
Copy link

kys1230 commented May 6, 2022

I want to press httpcode and request_time filters out the correct requests. For example, sum (httpcode = 200 and request_time < 200ms) / total_request to calculate availability. How should I configure it?

http{
  ...
  vhost_traffic_status_zone;
  vhost_traffic_status_histogram_buckets .1 .5 1 2;
  
  server {
      listen   9110;
      location /status {
          vhost_traffic_status_display;
          vhost_traffic_status_display_format prometheus;
      }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant