feat: add netbox device support #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test metricsure | |
on: [push] | |
jobs: | |
metricsure: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get Pull Request number | |
uses: jwalton/gh-find-current-pr@v1 | |
id: pr_number | |
with: | |
state: all | |
- name: Run metricsure | |
id: metricsure | |
uses: ./ | |
with: | |
endpoint: 'https://prometheus.demo.do.prometheus.io' | |
metric: 'prometheus_remote_storage_exemplars_in_total' | |
label: 'instance' | |
values: 'demo.do.prometheus.io:9100,demo.do.prometheus.io:9090' | |
- name: Add output to pull request | |
if: success() | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
issue-number: ${{ steps.pr_number.outputs.number }} | |
body: | | |
List of values that did not return any metrics from the endpoint: | |
**${{ steps.metricsure.outputs.invalide_values }}** |