ndiazg / nginx-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEWNginx metrics exporter for Prometheus
License: MIT License
Nginx metrics exporter for Prometheus
License: MIT License
With docker-compose.yml:
version: '2'
services:
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
volumes:
- /var/log/nginx
restart: unless-stopped
nginx_exporter:
restart: always
image: ndiazg/nginx-prometheus-exporter:latest
volumes_from:
- nginx
expose:
- "3093"
ports:
- "3093:3093"
get error (docker-compose logs nginx_exporter):
nginx_exporter_1 | flag needs an argument: -logs
nginx_exporter_1 | Usage of /usr/local/bin/mtail:
nginx_exporter_1 | -alsologtostderr
nginx_exporter_1 | log to standard error as well as files
nginx_exporter_1 | -collectd_socketpath string
nginx_exporter_1 | Path to collectd unixsock to write metrics to.
nginx_exporter_1 | -compile_only
nginx_exporter_1 | Compile programs only, do not load the virtual machine.
nginx_exporter_1 | -dump_bytecode
nginx_exporter_1 | Dump bytecode of programs and exit.
nginx_exporter_1 | -graphite_host_port string
nginx_exporter_1 | Host:port to graphite carbon server to write metrics to.
nginx_exporter_1 | -log_backtrace_at value
nginx_exporter_1 | when logging hits line file:N, emit a stack trace (default :0)
nginx_exporter_1 | -log_dir string
nginx_exporter_1 | If non-empty, write log files in this directory
nginx_exporter_1 | -logfds string
nginx_exporter_1 | List of file descriptors to monitor.
nginx_exporter_1 | -logs string
nginx_exporter_1 | List of files to monitor.
nginx_exporter_1 | -logtostderr
nginx_exporter_1 | log to standard error instead of files
nginx_exporter_1 | -metric_push_interval_seconds int
nginx_exporter_1 | Interval between metric pushes, in seconds (default 60)
nginx_exporter_1 | -mtailDebug int
nginx_exporter_1 | Set parser debug level.
nginx_exporter_1 | -one_shot
nginx_exporter_1 | Run on logs until EOF and exit.
nginx_exporter_1 | -one_shot_metrics
nginx_exporter_1 | Dump metrics to stdout after one shot mode.
nginx_exporter_1 | -port string
nginx_exporter_1 | HTTP port to listen on. (default "3903")
nginx_exporter_1 | -progs string
nginx_exporter_1 | Directory containing programs
nginx_exporter_1 | -statsd_hostport string
nginx_exporter_1 | Host:port to statsd server to write metrics to.
nginx_exporter_1 | -stderrthreshold value
nginx_exporter_1 | logs at or above this threshold go to stderr
nginx_exporter_1 | -syslog_use_current_year
nginx_exporter_1 | Patch yearless timestamps with the present year. (default true)
nginx_exporter_1 | -v value
nginx_exporter_1 | log level for V logs
nginx_exporter_1 | -vmodule value
nginx_exporter_1 | comma-separated list of pattern=N settings for file-filtered logging
nginx_exporter_1 | flag needs an argument: -logs
nginx_exporter_1 | Usage of /usr/local/bin/mtail:
nginx_exporter_1 | -alsologtostderr
nginx_exporter_1 | log to standard error as well as files
nginx_exporter_1 | -collectd_socketpath string
nginx_exporter_1 | Path to collectd unixsock to write metrics to.
nginx_exporter_1 | -compile_only
nginx_exporter_1 | Compile programs only, do not load the virtual machine.
nginx_exporter_1 | -dump_bytecode
nginx_exporter_1 | Dump bytecode of programs and exit.
nginx_exporter_1 | -graphite_host_port string
nginx_exporter_1 | Host:port to graphite carbon server to write metrics to.
nginx_exporter_1 | -log_backtrace_at value
nginx_exporter_1 | when logging hits line file:N, emit a stack trace (default :0)
nginx_exporter_1 | -log_dir string
nginx_exporter_1 | If non-empty, write log files in this directory
nginx_exporter_1 | -logfds string
nginx_exporter_1 | List of file descriptors to monitor.
nginx_exporter_1 | -logs string
nginx_exporter_1 | List of files to monitor.
nginx_exporter_1 | -logtostderr
nginx_exporter_1 | log to standard error instead of files
nginx_exporter_1 | -metric_push_interval_seconds int
nginx_exporter_1 | Interval between metric pushes, in seconds (default 60)
nginx_exporter_1 | -mtailDebug int
nginx_exporter_1 | Set parser debug level.
nginx_exporter_1 | -one_shot
nginx_exporter_1 | Run on logs until EOF and exit.
nginx_exporter_1 | -one_shot_metrics
nginx_exporter_1 | Dump metrics to stdout after one shot mode.
nginx_exporter_1 | -port string
nginx_exporter_1 | HTTP port to listen on. (default "3903")
nginx_exporter_1 | -progs string
nginx_exporter_1 | Directory containing programs
nginx_exporter_1 | -statsd_hostport string
nginx_exporter_1 | Host:port to statsd server to write metrics to.
nginx_exporter_1 | -stderrthreshold value
nginx_exporter_1 | logs at or above this threshold go to stderr
nginx_exporter_1 | -syslog_use_current_year
nginx_exporter_1 | Patch yearless timestamps with the present year. (default true)
nginx_exporter_1 | -v value
nginx_exporter_1 | log level for V logs
nginx_exporter_1 | -vmodule value
nginx_exporter_1 | comma-separated list of pattern=N settings for file-filtered logging
nginx_exporter_1 | flag needs an argument: -logs
nginx_exporter_1 | Usage of /usr/local/bin/mtail:
nginx_exporter_1 | -alsologtostderr
nginx_exporter_1 | log to standard error as well as files
nginx_exporter_1 | -collectd_socketpath string
nginx_exporter_1 | Path to collectd unixsock to write metrics to.
nginx_exporter_1 | -compile_only
nginx_exporter_1 | Compile programs only, do not load the virtual machine.
nginx_exporter_1 | -dump_bytecode
nginx_exporter_1 | Dump bytecode of programs and exit.
nginx_exporter_1 | -graphite_host_port string
nginx_exporter_1 | Host:port to graphite carbon server to write metrics to.
nginx_exporter_1 | -log_backtrace_at value
nginx_exporter_1 | when logging hits line file:N, emit a stack trace (default :0)
nginx_exporter_1 | -log_dir string
nginx_exporter_1 | If non-empty, write log files in this directory
nginx_exporter_1 | -logfds string
nginx_exporter_1 | List of file descriptors to monitor.
nginx_exporter_1 | -logs string
nginx_exporter_1 | List of files to monitor.
nginx_exporter_1 | -logtostderr
nginx_exporter_1 | log to standard error instead of files
nginx_exporter_1 | -metric_push_interval_seconds int
nginx_exporter_1 | Interval between metric pushes, in seconds (default 60)
nginx_exporter_1 | -mtailDebug int
nginx_exporter_1 | Set parser debug level.
nginx_exporter_1 | -one_shot
nginx_exporter_1 | Run on logs until EOF and exit.
nginx_exporter_1 | -one_shot_metrics
nginx_exporter_1 | Dump metrics to stdout after one shot mode.
nginx_exporter_1 | -port string
nginx_exporter_1 | HTTP port to listen on. (default "3903")
nginx_exporter_1 | -progs string
nginx_exporter_1 | Directory containing programs
nginx_exporter_1 | -statsd_hostport string
nginx_exporter_1 | Host:port to statsd server to write metrics to.
nginx_exporter_1 | -stderrthreshold value
nginx_exporter_1 | logs at or above this threshold go to stderr
nginx_exporter_1 | -syslog_use_current_year
nginx_exporter_1 | Patch yearless timestamps with the present year. (default true)
nginx_exporter_1 | -v value
nginx_exporter_1 | log level for V logs
nginx_exporter_1 | -vmodule value
nginx_exporter_1 | comma-separated list of pattern=N settings for file-filtered logging
Can you help?
Hi,
There might be multiple virtual hosts with each having its own access.log, is there a way to supply multiple files during docker run
and/or use a wildcard pattern, *.log
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.