Skip to content

Commit

Permalink
Cleanup grafana dashboards section
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Jul 8, 2024
1 parent 40831f1 commit b005b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
1 change: 1 addition & 0 deletions docs/user-guide/.pages
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ nav:
- external.md
- harvester.md
- shrink-expand.md
- profiles.md
- grafana.md
- ...
36 changes: 3 additions & 33 deletions docs/user-guide/grafana.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,7 @@
# Grafana Dashboards

To provide monitoring for most critical metrics from the switches managed by Hedgehog Fabric there are several Dashboards that may be used in Grafana deployments.

## Alloy enablement

`hedgehog-alloy` is installed for each SONiC-based switch in Hedgehog Fabric. However, the configuration of service has to be defined on the Fabric init stage.
Following config should be added to `hhfab.yaml` init file.

```yaml
...
fabric:
controlProxy: true
alloy:
agentScrapeIntervalSeconds: # Interval between metrics collection from agent
unixScrapeIntervalSeconds: # Interval between metrics collection for Node Exporter
unixExporterEnabled: true # Enble Node Exporter Full
collectSyslogEnabled: true # Enable inspection of Syslog in Loki
lokiTargets:
lab:
url: # Url for Loki to push logs
useControlProxy: true # Route messages through Control node
labels:
env: # Environment name applied as label on metrics
prometheusTargets:
lab:
url: # Url for Prometheus to push metrics
useControlProxy: true
labels:
env:
sendIntervalSeconds: # Interval between pushes to Prometheus collector
...
```

To provide monitoring for most critical metrics from the switches managed by Hedgehog Fabric there are several Dashboards that may be used in Grafana deployments. Make sure that you've enabled metrics and logs collection for the switches in the Fabric that is
described in [Fabric Config](../install-upgrade/config.md#forward-switch-metrics-and-logs) section.

## Variables
List of common variables used in Hedgehog Grafana dashboards
Expand All @@ -45,7 +15,7 @@ List of common variables used in Hedgehog Grafana dashboards

## Switch Critical Resources

This table reports usage and capacity of ASIC's programmable resources
This table reports usage and capacity of ASIC's programmable resources
such as:

- ACLs
Expand Down

0 comments on commit b005b55

Please sign in to comment.