Page MenuHomeSoftware Heritage

Grab firewalls metrics via prometheus
ClosedPublic

Authored by vsellier on Nov 9 2020, 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
Branch
staging
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 17021
Build 26267: arc lint + arc unit

Event Timeline

ardumont added a subscriber: ardumont.

lgtm

1 remark inline

site-modules/profile/manifests/opnsense/metrics_scraper.pp
9

indent is slightly off by 2

This revision is now accepted and ready to land.Nov 10 2020, 9:11 AM
  • Add webui checks on icinga
  • Rename the puppet class to something more generic as it's not only dedicated to prometheus configuration

rebase and remove unnecessary spaces

This revision was automatically updated to reflect the committed changes.