Add a new REST Snapshot template #2970
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
-
Note: These steps are for native install.
Step 1: Create
custom_snapshot.yaml
Let's assume Harvest is installed in
/opt/harvest
directory. Adjust paths as needed.Navigate to the
rest
directory:cd /opt/harvest/conf/rest
Create custom_snapshot.yaml:
Update the file with the following content:
Step 2: Create
snapshot.yaml
Navigate to the
9.12.0
directory:cd /opt/harvest/conf/rest/9.12.0
Create
snapshot.yaml
:Update the file with the following content:
Step 3: Restart Harvest pollers
Step 4: Validate Snapshot collection in Harvest
Wait for at least 1 minute. To ensure that the
Rest:Snapshot
metrics are being collected, run the following command:Substitute the name of your poller for
$poller
In the screenshot below, you can see that the poller
sar
is collectingRest:Snapshot
instances.Step 5: Verify Snapshot metrics are in Prometheus
Confirm that the Snapshot metrics are being scraped by Prometheus by running the following query from Prometheus:
Beta Was this translation helpful? Give feedback.
All reactions