formula-prometheus/prometheus/files/default-pushgateway.jinja

19 lines
1.1 KiB
Text
Raw Normal View History

{%- from "prometheus/map.jinja" import pushgateway with context %}
# Set the command-line arguments to pass to the server.
ARGS="-web.listen-address {{pushgateway.bind.get('address', '')}}:{{pushgateway.bind.get('port', 9091)}} -web.telemetry-path {{pushgateway.get('telemetry_path', '/metrics')}}"
#Usage of /usr/bin/pushgateway:
# -log.format value
# If set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr.
# -log.level value
# Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal].
# -persistence.file string
# File to persist metrics. If empty, metrics are only kept in memory.
# -persistence.interval duration
# The minimum interval at which to write out the persistence file. (default 5m0s)
# -version
# Print version information.
# -web.listen-address string
# Address to listen on for the web interface, API, and telemetry. (default ":9091")
# -web.telemetry-path string
# Path under which to expose metrics. (default "/metrics")