Page MenuHomeSoftware Heritage

Grab firewalls metrics via prometheus
ClosedPublic

Authored by vsellier on Mon, Nov 9, 6:25 PM.

Details

Summary

Related to T2755

Test Plan

octodiff-catalog :

➜  puppet-environment git:(master) ✗ bin/octocatalog-diff pergamon
Found host pergamon.softwareheritage.org
Cloning into '/tmp/swh-ocd.FywRiI4l/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.FywRiI4l/environments/staging/data/private'...
done.
*** Running octocatalog-diff on host pergamon.softwareheritage.org
diff origin/production/pergamon.softwareheritage.org current/pergamon.softwareheritage.org
*******************************************
  File[/etc/bind/keys/local-update] =>
   parameters =>
     content =>
      @@ -2,4 +2,4 @@
       key local-update {
        algorithm hmac-sha256;
      - secret "VhMWuyAG6OGnck2L5QcE2GQQ1DBaKpmUa8XLKxJqWyGdwfU9o/+81QYYsP9Pfu/ymq+uDXbphWvwLeqPhgYxEQ==";
      + secret "Na1LmVOP2JcqT9SKcQXbRA2U35R+k/ptxfCHF+KU46RiN155Zh6uk6NGbVW/p1EsAQCthgRJbMX6IjgFpyoBJQ==";
       };
*******************************************
  File[/etc/bind/rndc.key] =>
   parameters =>
     content =>
      @@ -2,4 +2,4 @@
       key rndc-key {
        algorithm hmac-md5;
      - secret "2BHn9sxAlH31N07jqMIhvCmchDTJSVcgjLOHXLpZJYB55SCPJh1MGWs3LQTnPKpd6R4ylUV06WHvI7yq7xDhDw==";
      + secret "RnT7zkuGI7iD3X5vuhOl44HHysQfm8Gd1acIA4sdPARoFJmVYE6iEpwRVIC//TJreAfkJiSrNcOtx/+rrOq17w==";
       };
*******************************************
+ Profile::Prometheus::Export_scrape_config[glyptotek.internal.softwareheritage.org] =>
   parameters =>
     "job": "glyptotek.internal.softwareheritage.org",
     "labels": {
     },
     "metrics_path": "/metrics",
     "scheme": "http",
     "target": "glyptotek.internal.softwareheritage.org:9100"
*******************************************
+ Profile::Prometheus::Export_scrape_config[pushkin.internal.softwareheritage.org] =>
   parameters =>
     "job": "pushkin.internal.softwareheritage.org",
     "labels": {
     },
     "metrics_path": "/metrics",
     "scheme": "http",
     "target": "pushkin.internal.softwareheritage.org:9100"
*******************************************
*** End octocatalog-diff on pergamon.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier created this revision.Mon, Nov 9, 6:25 PM
ardumont accepted this revision.Tue, Nov 10, 9:11 AM
ardumont added a subscriber: ardumont.

lgtm

1 remark inline

site-modules/profile/manifests/opnsense/metrics_scraper.pp
9 ↗(On Diff #15766)

indent is slightly off by 2

This revision is now accepted and ready to land.Tue, Nov 10, 9:11 AM
vsellier updated this revision to Diff 15768.Tue, Nov 10, 9:53 AM

Fix indentation

vsellier updated this revision to Diff 15812.Tue, Nov 10, 7:16 PM
  • Add webui checks on icinga
  • Rename the puppet class to something more generic as it's not only dedicated to prometheus configuration
vsellier updated this revision to Diff 15884.Mon, Nov 16, 11:57 AM

rebase and remove unnecessary spaces

This revision was automatically updated to reflect the committed changes.