1
0
mirror of https://github.com/prometheus/docs.git synced 2026-02-05 06:45:01 +01:00
Files
docs/.github/workflows/openmetrics.yml
George Krajcsovits 60c3cf0911 OM1.1: create OpenMetrics 1.1 draft and enable CI check of ABNF on it (#2726)
* copy om1.0 to om1.1 and hide

Also update the front matter a little bit.

* Enable running ABNF check on OM1.1
* enable checking the full example and per metric type

Sync checks with OM2.0.

* fix extra space before value bug in example

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-09-19 16:31:36 +02:00

27 lines
850 B
YAML

name: OpenMetrics
on:
pull_request:
paths:
- 'docs/specs/om/open_metrics_spec_2_0.md'
jobs:
check-abnf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python 3.x
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12.3"
- name: Install dependencies
run: |
pip install -r openmetrics-spec-tests/check_openmetrics_spec_requirements.txt
- name: Check ABNF for OpenMetrics 1.1
run: |
python3 openmetrics-spec-tests/check_openmetrics_spec.py docs/specs/om/open_metrics_spec_1_1.md
- name: Check ABNF for OpenMetrics 2.0
run: |
python3 openmetrics-spec-tests/check_openmetrics_spec.py docs/specs/om/open_metrics_spec_2_0.md