Filippo Giunchedi has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/402055 )

Change subject: prometheus: add backend varnish mtail job
......................................................................

prometheus: add backend varnish mtail job

Bug: T177199
Change-Id: I8d1271ebf7db7da4ec32483b7b440067215f249a
---
M modules/role/manifests/prometheus/ops.pp
1 file changed, 27 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/55/402055/1

diff --git a/modules/role/manifests/prometheus/ops.pp 
b/modules/role/manifests/prometheus/ops.pp
index 8680d6f..0976ddc 100644
--- a/modules/role/manifests/prometheus/ops.pp
+++ b/modules/role/manifests/prometheus/ops.pp
@@ -219,7 +219,7 @@
       },
     ]
 
-    # Pull varnish-related metrics generated via mtail
+    # Pull varnish-related metrics generated via mtail (frontend)
     prometheus::class_config{ "varnish-canary_mtail_${::site}":
         dest       => "${targets_path}/varnish-canary_mtail_${::site}.yaml",
         site       => $::site,
@@ -245,6 +245,32 @@
         port       => '3903',
     }
 
+    # And varnish backend instance stats generated by mtail
+    prometheus::class_config{ "varnish-canary_backendmtail_${::site}":
+        dest       => 
"${targets_path}/varnish-canary_backendmtail_${::site}.yaml",
+        site       => $::site,
+        class_name => 'role::cache::canary',
+        port       => '3904',
+    }
+    prometheus::class_config{ "varnish-misc_backendmtail_${::site}":
+        dest       => 
"${targets_path}/varnish-misc_backendmtail_${::site}.yaml",
+        site       => $::site,
+        class_name => 'role::cache::misc',
+        port       => '3904',
+    }
+    prometheus::class_config{ "varnish-upload_backendmtail_${::site}":
+        dest       => 
"${targets_path}/varnish-upload_backendmtail_${::site}.yaml",
+        site       => $::site,
+        class_name => 'role::cache::upload',
+        port       => '3904',
+    }
+    prometheus::class_config{ "varnish-text_backendmtail_${::site}":
+        dest       => 
"${targets_path}/varnish-text_backendmtail_${::site}.yaml",
+        site       => $::site,
+        class_name => 'role::cache::text',
+        port       => '3904',
+    }
+
     # Job definition for memcache_exporter
     $memcached_jobs = [
       {

-- 
To view, visit https://gerrit.wikimedia.org/r/402055
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d1271ebf7db7da4ec32483b7b440067215f249a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to