Ansible role for exposing Nginx metrics for Prometheus
Go to file
Jakub Sokołowski fdc31d5b23
meta: use full names of Ansible roles
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-03-13 00:32:11 +01:00
defaults upgrade from 0.11.0 to 1.1.0 2024-02-29 01:33:57 +01:00
meta meta: use full names of Ansible roles 2024-03-13 00:32:11 +01:00
tasks meta: use full names of Ansible roles 2024-03-13 00:32:11 +01:00
templates service: fix Requires and add After clauses 2024-02-29 02:06:03 +01:00
README.md add example to readme 2020-03-25 16:06:31 +01:00

README.md

Description

This role configures a nginx-prometheus-exporter service for exporting basic Nginx metrics.

Configuration

nginx_metrics_service_name: 'nginx-metrics'
nginx_metrics_nginx_status_port: 9112
nginx_metrics_listen_host: '0.0.0.0'
nginx_metrics_listen_port: 9113

Example

 $ curl -s localhost:9113/metrics | grep '^nginx_' 
nginx_connections_accepted 1352
nginx_connections_active 3
nginx_connections_handled 1352
nginx_connections_reading 0
nginx_connections_waiting 2
nginx_connections_writing 1
nginx_http_requests_total 2606
nginx_up 1