How to use Podman and Quadlet to start Harvest pollers #3313
cgrinds
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
The goal is to create Podman quadlets for each Harvest poller without Prometheus and Grafana containers.
1. Install Harvest and generate harvest-compose.yml per normal
2. Use podlet to generate Quadlet files from
harvest-compose.yml
3. Make a few edits to quadlet files and move to
/etc/containers/systemd/
4.
systemctl daemon-reload
5.
systemctl start poller-sar
,systemctl start poller-u2
, ...5. Reboot machine and verify pollers all correctly restart
Generate harvest-compose
Installed Harvest and generate harvest-compose.yml
Podlet
Install podlet or compare the example harvest-compose.yml above with the generated quadlets below.
# podlet compose harvest-compose.yml
Edit quadlets
Podlet create two Yaml documents, one for each poller.
We are going to make the following adjustments to the podlet output and copy/paste the final output into
/etc/containers/systemd/poller-u2.container
and/etc/containers/systemd/poller-sar.container
The edits are:
Network=backend
line that was included for Prometheus.Volume
paths to fully qualified paths. (e.g. change./cert
to/opt/harvest/cert
if you installed Harvest at/opt/harvest
)Here is the final output for the sar service.
Copy that service file to
/etc/containers/systemd/poller-sar.container
Versions
Reference
Beta Was this translation helpful? Give feedback.
All reactions