varnish: export the metrics to prometheus
Related to T2733
Test Plan
- moma
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************
+ File[/etc/default/prometheus-varnish-exporter] =>
parameters =>
"content": "# Managed by Puppet (class profile::prometheus::varnish), change...
"ensure": "present",
"group": "root",
"mode": "0644",
"notify": "Service[prometheus-varnish-exporter]",
"owner": "root"
*******************************************
+ File[/etc/systemd/system/prometheus-varnish-exporter.service.d/restart.conf] =>
parameters =>
"content": "[Service]\nRestart=always\nRestartSec=5\n",
"ensure": "file",
"group": "root",
"mode": "0444",
"notify": [
"Class[Systemd::Systemctl::Daemon_reload]"
],
"owner": "root",
"selinux_ignore_defaults": false,
"show_diff": true
*******************************************
+ File[/etc/systemd/system/prometheus-varnish-exporter.service.d/user.conf] =>
parameters =>
"content": "[Service]\nUser=varnish\n",
"ensure": "file",
"group": "root",
"mode": "0444",
"notify": [
"Class[Systemd::Systemctl::Daemon_reload]"
],
"owner": "root",
"selinux_ignore_defaults": false,
"show_diff": true
*******************************************
+ File[/etc/systemd/system/prometheus-varnish-exporter.service.d] =>
parameters =>
"ensure": "directory",
"group": "root",
"owner": "root",
"purge": true,
"recurse": true,
"selinux_ignore_defaults": false
*******************************************
+ Package[prometheus-varnish-exporter] =>
parameters =>
"ensure": "present",
"notify": "Service[prometheus-varnish-exporter]"
*******************************************
+ Profile::Prometheus::Export_scrape_config[varnish] =>
parameters =>
"job": "varnish",
"labels": {
},
"target": "192.168.100.31:9104"
*******************************************
+ Service[prometheus-varnish-exporter] =>
parameters =>
"enable": true,
"ensure": "running"
*******************************************
+ Systemd::Dropin_file[prometheus-varnish-exporter/config.conf] =>
parameters =>
"content": "[Service]\nUser=varnish\n",
"daemon_reload": "lazy",
"ensure": "present",
"filename": "user.conf",
"group": "root",
"mode": "0444",
"owner": "root",
"path": "/etc/systemd/system",
"selinux_ignore_defaults": false,
"show_diff": true,
"unit": "prometheus-varnish-exporter.service"
*******************************************
+ Systemd::Dropin_file[prometheus-varnish-exporter/restart.conf] =>
parameters =>
"content": "[Service]\nRestart=always\nRestartSec=5\n",
"daemon_reload": "lazy",
"ensure": "present",
"filename": "restart.conf",
"group": "root",
"mode": "0444",
"owner": "root",
"path": "/etc/systemd/system",
"selinux_ignore_defaults": false,
"show_diff": true,
"unit": "prometheus-varnish-exporter.service"
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org
Migrated from D7079 (view on Phabricator)