nginx/nginx-prometheus-exporter  , you can
follow the example in examples/systemd. Alternatively, you can run the exporter
in a Docker container.
consoleusage: nginx-prometheus-exporter [<flags>] Flags: -h, --[no-]help Show context-sensitive help (also try --help-long and --help-man). --[no-]web.systemd-socket Use systemd socket activation listeners instead of port listeners (Linux only). ($SYSTEMD_SOCKET) --web.listen-address=:9113 ... Addresses on which to expose metrics and web interface. Repeatable for multiple addresses. ($LISTEN_ADDRESS) --web.config.file="" Path to configuration file that can enable TLS or authentication. See: [***] ($CONFIG_FILE) --web.telemetry-path="/metrics" Path under which to expose metrics. ($TELEMETRY_PATH) --[no-]nginx.plus Start the exporter for NGINX Plus. By default, the exporter is started for NGINX. ($NGINX_PLUS) --nginx.scrape-uri=[***] ... A URI or unix domain socket path for scraping NGINX or NGINX Plus metrics. For NGINX, the stub_status page must be available through the URI. For NGINX Plus -- the API. Repeatable for multiple URIs. ($SCRAPE_URI) --[no-]nginx.ssl-verify Perform SSL certificate verification. ($SSL_VERIFY) --nginx.ssl-ca-cert="" Path to the PEM encoded CA certificate file used to validate the servers SSL certificate. ($SSL_CA_CERT) --nginx.ssl-client-cert="" Path to the PEM encoded client certificate file to use when connecting to the server. ($SSL_CLIENT_CERT) --nginx.ssl-client-key="" Path to the PEM encoded client certificate key file to use when connecting to the server. ($SSL_CLIENT_KEY) --[no-]nginx.proxy-protocol Pass proxy protocol payload to nginx listeners. ($PROXY_PROTOCOL) --nginx.timeout=5s A timeout for scraping metrics from NGINX or NGINX Plus. ($TIMEOUT) --prometheus.const-label=PROMETHEUS.CONST-LABEL ... Label that will be used in every metric. Format is label=value. It can be repeated multiple times. ($CONST_LABELS) --log.level=info Only log messages with the given severity or above. One of: [debug, info, warn, error] --log.format=logfmt Output format of log messages. One of: [logfmt, json] --[no-]version Show application version.
| Name | Type | Description | Labels |
|---|---|---|---|
nginx_exporter_build_info | Gauge | Shows the exporter build information. | branch, goarch, goos, goversion, revision, tags and version |
promhttp_metric_handler_requests_total | Counter | Total number of scrapes by HTTP status code. | code (the HTTP status code) |
promhttp_metric_handler_requests_in_flight | Gauge | Current number of scrapes being served. | [] |
go_* | Multiple | Go runtime metrics. | [] |
| Name | Type | Description | Labels |
|---|---|---|---|
nginx_up | Gauge | Shows the status of the last metric scrape: 1 for a successful scrape and 0 for a failed one | [] |
| Name | Type | Description | Labels |
|---|---|---|---|
nginx_connections_accepted | Counter | Accepted client connections. | [] |
nginx_connections_active | Gauge | Active client connections. | [] |
nginx_connections_handled | Counter | Handled client connections. | [] |
nginx_connections_reading | Gauge | Connections where NGINX is reading the request header. | [] |
nginx_connections_waiting | Gauge | Idle client connections. | [] |
nginx_connections_writing | Gauge | Connections where NGINX is writing the response back to the client. | [] |
nginx_http_requests_total | Counter | Total http requests. | [] |
| Name | Type | Description | Labels |
|---|---|---|---|
nginxplus_up | Gauge | Shows the status of the last metric scrape: 1 for a successful scrape and 0 for a failed one | [] |
| Name | Type | Description | Labels |
|---|---|---|---|
nginxplus_connections_accepted | Counter | Accepted client connections | [] |
nginxplus_connections_active | Gauge | Active client connections | [] |
nginxplus_connections_dropped | Counter | Dropped client connections dropped | [] |
nginxplus_connections_idle | Gauge | Idle client connections | [] |
| Name | Type | Description | Labels |
|---|---|---|---|
nginxplus_http_requests_total | Counter | Total http requests | [] |
nginxplus_http_requests_current | Gauge | Current http requests | [] |
| Name | Type | Description | Labels |
|---|---|---|---|
nginxplus_ssl_handshakes | Counter | Successful SSL handshakes | [] |
nginxplus_ssl_handshakes_failed | Counter | Failed SSL handshakes | [] |
nginxplus_ssl_session_reuses | Counter | Session reuses during SSL handshake | [] |
| Name | Type | Description | Labels |
|---|---|---|---|
nginxplus_server_zone_processing | Gauge | Client requests that are currently being processed | server_zone |
nginxplus_server_zone_requests | Counter | Total client requests | server_zone |
nginxplus_server_zone_responses | Counter | Total responses sent to clients | code (the response status code. The values are: 1xx, 2xx, 3xx, 4xx and 5xx), server_zone |
nginxplus_server_zone_responses_codes | Counter | Total responses sent to clients by code | code (the response status code. The possible values are available on the NGINX Wiki), server_zone |
nginxplus_server_zone_discarded | Counter | Requests completed without sending a response | server_zone |
nginxplus_server_zone_received | Counter | Bytes received from clients | server_zone |
nginxplus_server_zone_sent | Counter | Bytes sent to clients | server_zone |
nginxplus_server_ssl_handshakes | Counter | Successful SSL handshakes | server_zone |
nginxplus_server_ssl_handshakes_failed | Counter | Failed SSL handshakes | server_zone |
nginxplus_server_ssl_session_reuses | Counter | Session reuses during SSL handshake | server_zone |
| Name | Type | Description | Labels |
|---|---|---|---|
nginxplus_stream_server_zone_processing | Gauge | Client connections that are currently being processed | server_zone |
nginxplus_stream_server_zone_connections | Counter | Total connections | server_zone |
nginxplus_stream_server_zone_sessions | Counter | Total sessions completed | code (the response status code. The values are: 2xx, 4xx, and 5xx), server_zone |
nginxplus_stream_server_zone_discarded | Counter | Connections completed without creating a session | server_zone |
nginxplus_stream_server_zone_received | Counter | Bytes received from clients | server_zone |
nginxplus_stream_server_zone_sent | Counter | Bytes sent to clients | server_zone |
nginxplus_stream_server_ssl_handshakes | Counter | Successful SSL handshakes | server_zone |
nginxplus_stream_server_ssl_handshakes_failed | Counter | Failed SSL handshakes | server_zone |
nginxplus_stream_server_ssl_session_reuses | Counter | Session reuses during SSL handshake | server_zone |
Note: for the
statemetric, the string values are converted to float64 using the following rule:"up"->1.0,"draining"->2.0,"down"->3.0,"unavail"–>4.0,"checking"–>5.0,"unhealthy"->6.0.
| Name | Type | Description | Labels |
|---|---|---|---|
nginxplus_upstream_server_state | Gauge | Current state | server, upstream |
nginxplus_upstream_server_active | Gauge | Active connections | server, upstream |
nginxplus_upstream_server_limit | Gauge | Limit for connections which corresponds to the max_conns parameter of the upstream server. Zero value means there is no limit | server, upstream |
nginxplus_upstream_server_requests | Counter | Total client requests | server, upstream |
nginxplus_upstream_server_responses | Counter | Total responses sent to clients | code (the response status code. The values are: 1xx, 2xx, 3xx, 4xx and 5xx), server, upstream |
nginxplus_upstream_server_responses_codes | Counter | Total responses sent to clients by code | code (the response status code. The possible values are available on the NGINX Wiki), server, upstream |
nginxplus_upstream_server_sent | Counter | Bytes sent to this server | server, upstream |
nginxplus_upstream_server_received | Counter | Bytes received to this server | server, upstream |
nginxplus_upstream_server_fails | Counter | Number of unsuccessful attempts to communicate with the server | server, upstream |
nginxplus_upstream_server_unavail |
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务