Page MenuHomeSoftware Heritage

pve-exporter: Install prometheus-pve-exporter on hypervisor nodes
ClosedPublic

Authored by ardumont on Aug 11 2021, 6:08 PM.

Details

Summary

This installs the prometheus exporter and adds the scraping step.

Related to T3462

Test Plan

octo-diff on hypervisors, expectedly, the diffs adds the install prometheus exporter step (and configuration).

$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging hypervisor3
...
*** Running octocatalog-diff on host hypervisor3.internal.softwareheritage.org
I, [2021-08-11T18:07:38.183095 #6177]  INFO -- : Catalogs compiled for hypervisor3.internal.softwareheritage.org
I, [2021-08-11T18:07:39.616525 #6177]  INFO -- : Diffs computed for hypervisor3.internal.softwareheritage.org
diff origin/production/hypervisor3.internal.softwareheritage.org current/hypervisor3.internal.softwareheritage.org
*******************************************
+ File[/etc/pve-exporter/pve-exporter.yml] =>
   parameters =>
      "ensure": "present"
      "group": "root"
      "mode": "0600"
      "owner": "root"
      "content": >>>
default:
  user: pve_exporter@pve
  password: prometheus-pve-exporter-password
  verify_ssl: false
<<<
*******************************************
+ File[/etc/pve-exporter] =>
   parameters =>
      "ensure": "present"
      "group": "root"
      "mode": "0644"
      "owner": "root"
*******************************************
+ File[prometheus-pve-exporter.service] =>
   parameters =>
      "ensure": "present"
      "group": "root"
      "mode": "0755"
      "owner": "root"
      "content": >>>
[Unit]
Description=Proxmox VE Prometheus Exporter
After=network.target
Wants=network.target
[Service]
Restart=on-failure
WorkingDirectory=/tmp
ExecStart=/usr/bin/pve_exporter /etc/pve-exporter/pve-exporter.yml
[Install]
WantedBy=multi-user.target
<<<
*******************************************
+ Package[python3-prometheus-pve-exporter] =>
   parameters =>
      "ensure": "present"
*******************************************
*** End octocatalog-diff on hypervisor3.internal.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.