From 4ea3fdd5ab34ccb4f7624a2050b6dc4aa3a08f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 10 May 2022 14:48:31 -0400 Subject: [PATCH] make process exporter service name propagate correctly Most (but not all!) of the other exporters set the service name properly by passing it like that to the prometheus::daemon. It's important to have this so that it works when installing from Debian packages, where the service name is `prometheus-process-exporter` and not `process-exporter`. This is similar to commit 14849dd578ddf870dcda2bcc0bb197050cf1b136 ("have a $service_name parameter for all prometheus-exporters") and 82cc646a31fa1062f3617262f14143539ef9d400 ("make apache exporter service name customizable"). --- manifests/process_exporter.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/process_exporter.pp b/manifests/process_exporter.pp index 9eed95a0c..2505fa0a3 100644 --- a/manifests/process_exporter.pp +++ b/manifests/process_exporter.pp @@ -134,7 +134,7 @@ $options = "-config.path=${config_path} ${extra_options}" - prometheus::daemon { 'process-exporter': + prometheus::daemon { $service_name: install_method => $install_method, version => $version, download_extension => $download_extension,