Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/prometheus/nginx.pp
# Prometheus configuration for statsd exporter | # Prometheus configuration for nginx exporter | ||||
class profile::prometheus::nginx { | class profile::prometheus::nginx { | ||||
include profile::prometheus::base | include profile::prometheus::base | ||||
$defaults_file = '/etc/default/prometheus-nginx-exporter' | $defaults_file = '/etc/default/prometheus-nginx-exporter' | ||||
$nginx_metrics_port = lookup('nginx::metrics_port') | $nginx_metrics_port = lookup('nginx::metrics_port') | ||||
$nginx_metrics_location = lookup('nginx::metrics_location') | $nginx_metrics_location = lookup('nginx::metrics_location') | ||||
$scrape_uri = "http://127.0.0.1:${nginx_metrics_port}${nginx_metrics_location}" | $scrape_uri = "http://127.0.0.1:${nginx_metrics_port}${nginx_metrics_location}" | ||||
$listen_network = lookup('prometheus::nginx::listen_network') | $listen_network = lookup('prometheus::nginx::listen_network') | ||||
Show All 33 Lines |