mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 10:09:05 +02:00
metriccontract: check metric names in docs, mixin and dashboards (#2731)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -7,7 +7,11 @@ on:
|
||||
paths:
|
||||
- contrib/mixin/**
|
||||
- dashboard/*.json
|
||||
- docs/collector.*.md
|
||||
- docs/runbooks/**
|
||||
- docs/README.md
|
||||
- README.md
|
||||
- internal/metriccontract/**
|
||||
- .github/workflows/mixin.yml
|
||||
push:
|
||||
branches:
|
||||
@@ -17,7 +21,11 @@ on:
|
||||
paths:
|
||||
- contrib/mixin/**
|
||||
- dashboard/*.json
|
||||
- docs/collector.*.md
|
||||
- docs/runbooks/**
|
||||
- docs/README.md
|
||||
- README.md
|
||||
- internal/metriccontract/**
|
||||
- .github/workflows/mixin.yml
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -56,3 +64,8 @@ jobs:
|
||||
|
||||
- name: Lint dashboard and test rules
|
||||
run: mise run test
|
||||
|
||||
# Runs on Linux: the test reads the Go sources and builds no collector.
|
||||
- name: Check metric references
|
||||
working-directory: .
|
||||
run: go test -count=1 ./internal/metriccontract/
|
||||
|
||||
Reference in New Issue
Block a user