Skip to content

Instantly share code, notes, and snippets.

@elblivion
Created July 11, 2018 13:25
Show Gist options
  • Save elblivion/e1a5a84845c25013b03d496ac6133c8b to your computer and use it in GitHub Desktop.
Save elblivion/e1a5a84845c25013b03d496ac6133c8b to your computer and use it in GitHub Desktop.
nginx-lua-prometheus
# HELP nginx_http_connections Number of HTTP connections
# TYPE nginx_http_connections gauge
nginx_http_connections{state="reading"} 0
nginx_http_connections{state="waiting"} 0
nginx_http_connections{state="writing"} 1
# HELP nginx_http_request_duration_seconds HTTP request latency
# TYPE nginx_http_request_duration_seconds histogram
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.005"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.010"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.020"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.030"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.050"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.075"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.100"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.200"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.300"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.400"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.500"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="00.750"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="01.000"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="01.500"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="02.000"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="03.000"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="04.000"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="05.000"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="10.000"} 1
nginx_http_request_duration_seconds_bucket{host="admin.joistio.com",le="+Inf"} 1
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.005"} 108
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.010"} 108
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.020"} 108
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.030"} 108
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.050"} 108
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.075"} 108
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.100"} 108
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.200"} 111
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.300"} 111
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.400"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.500"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="00.750"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="01.000"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="01.500"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="02.000"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="03.000"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="04.000"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="05.000"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="10.000"} 112
nginx_http_request_duration_seconds_bucket{host="api.joistio.com",le="+Inf"} 112
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.005"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.010"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.020"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.030"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.050"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.075"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.100"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.200"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.300"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.400"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.500"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="00.750"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="01.000"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="01.500"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="02.000"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="03.000"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="04.000"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="05.000"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="10.000"} 1
nginx_http_request_duration_seconds_bucket{host="be.joistio.com",le="+Inf"} 1
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.005"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.010"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.020"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.030"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.050"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.075"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.100"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.200"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.300"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.400"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.500"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="00.750"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="01.000"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="01.500"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="02.000"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="03.000"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="04.000"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="05.000"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="10.000"} 46
nginx_http_request_duration_seconds_bucket{host="cdn.joistio.com",le="+Inf"} 46
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.005"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.010"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.020"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.030"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.050"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.075"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.100"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.200"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.300"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.400"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.500"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="00.750"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="01.000"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="01.500"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="02.000"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="03.000"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="04.000"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="05.000"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="10.000"} 2
nginx_http_request_duration_seconds_bucket{host="healthcheck",le="+Inf"} 2
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.005"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.010"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.020"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.030"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.050"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.075"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.100"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.200"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.300"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.400"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.500"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="00.750"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="01.000"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="01.500"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="02.000"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="03.000"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="04.000"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="05.000"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="10.000"} 5
nginx_http_request_duration_seconds_bucket{host="ot.joistio.com",le="+Inf"} 5
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.005"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.010"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.020"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.030"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.050"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.075"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.100"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.200"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.300"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.400"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.500"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="00.750"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="01.000"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="01.500"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="02.000"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="03.000"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="04.000"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="05.000"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="10.000"} 14
nginx_http_request_duration_seconds_bucket{host="preview.joistio.com",le="+Inf"} 14
nginx_http_request_duration_seconds_count{host="admin.joistio.com"} 1
nginx_http_request_duration_seconds_count{host="api.joistio.com"} 112
nginx_http_request_duration_seconds_count{host="be.joistio.com"} 1
nginx_http_request_duration_seconds_count{host="cdn.joistio.com"} 46
nginx_http_request_duration_seconds_count{host="healthcheck"} 2
nginx_http_request_duration_seconds_count{host="ot.joistio.com"} 5
nginx_http_request_duration_seconds_count{host="preview.joistio.com"} 14
nginx_http_request_duration_seconds_sum{host="admin.joistio.com"} 0
nginx_http_request_duration_seconds_sum{host="api.joistio.com"} 0.906
nginx_http_request_duration_seconds_sum{host="be.joistio.com"} 0
nginx_http_request_duration_seconds_sum{host="cdn.joistio.com"} 0.083
nginx_http_request_duration_seconds_sum{host="healthcheck"} 0.002
nginx_http_request_duration_seconds_sum{host="ot.joistio.com"} 0.007
nginx_http_request_duration_seconds_sum{host="preview.joistio.com"} 0.023
# HELP nginx_http_requests_total Number of HTTP requests
# TYPE nginx_http_requests_total counter
nginx_http_requests_total{host="admin.joistio.com",status="200"} 1
nginx_http_requests_total{host="api.joistio.com",status="200"} 97
nginx_http_requests_total{host="api.joistio.com",status="404"} 4
nginx_http_requests_total{host="api.joistio.com",status="429"} 11
nginx_http_requests_total{host="be.joistio.com",status="200"} 1
nginx_http_requests_total{host="cdn.joistio.com",status="200"} 31
nginx_http_requests_total{host="cdn.joistio.com",status="404"} 1
nginx_http_requests_total{host="cdn.joistio.com",status="429"} 14
nginx_http_requests_total{host="healthcheck",status="200"} 1
nginx_http_requests_total{host="healthcheck",status="503"} 1
nginx_http_requests_total{host="ot.joistio.com",status="200"} 5
nginx_http_requests_total{host="preview.joistio.com",status="200"} 10
nginx_http_requests_total{host="preview.joistio.com",status="429"} 4
# HELP nginx_metric_errors_total Number of nginx-lua-prometheus errors
# TYPE nginx_metric_errors_total counter
nginx_metric_errors_total 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment