Skip to content

Commit

Permalink
Add rootfs_path to grafana-agent.yaml
Browse files Browse the repository at this point in the history
This ensures that the root fs data will be collected accurately,
since grafana-agent is running in a snap.

Fixes #22
  • Loading branch information
Samuel Walladge committed Nov 3, 2023
1 parent 49abf15 commit 9f7ad0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def _additional_integrations(self) -> Dict[str, Any]:
)
return {
"node_exporter": {
"rootfs_path": "/var/lib/snapd/hostfs",
"enabled": True,
"enable_collectors": [
"logind",
Expand Down

0 comments on commit 9f7ad0b

Please sign in to comment.