Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25.x'
go-version: '1.25.11'
-
name: Run tests
run: go test ./...
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,21 @@ jobs:
- name: setup Go
uses: actions/setup-go@v6
with:
go-version: '1.25.x'
go-version: '1.25.11'
- run: go test -v ./...
validate-dashboard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: validate dashboard JSON
run: ./scripts/validate-dashboard.sh dashboards/sonic-exporter.json
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25.x'
go-version: '1.25.11'
cache: false
- name: golangci-lint
run: go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8 run
Expand All @@ -34,7 +40,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25.x'
go-version: '1.25.11'
- name: install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: run govulncheck
Expand All @@ -45,7 +51,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25.x'
go-version: '1.25.11'
- name: install gitleaks
run: go install github.com/zricethezav/gitleaks/v8@latest
- name: gitleaks scan working tree
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,29 @@ For a deeper breakdown, see `docs/architecture.md`.

Collector implementations live in `internal/collector/*_collector.go`.

## Grafana dashboard

The Grafana dashboard lives in `dashboards/sonic-exporter.json`. It is a single-switch drilldown dashboard for Grafana 10 and Grafana 11.

Rows are ordered this way:

- `Overview / Exporter Health`
- `Interfaces / Queues`
- `Hardware / CRM / Host`
- `Topology / L2`
- `Optional / FDB`
- `Optional / System`
- `Optional / Docker`
- `Optional / FRR`

The optional rows are collapsed by default and are safe when those metrics are absent. Validate dashboard changes with:

```bash
./scripts/validate-dashboard.sh dashboards/sonic-exporter.json
```

For import, provisioning, variables, validation, smoke checks, and limits, see `docs/grafana-dashboard.md`.

## Quick start

### Run locally
Expand Down
Loading