Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update /api/v1/{rules,alerts} responses #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simonpasquier
Copy link
Contributor

This commit adds the fields supported by newer Prometheus versions:

  • /api/v1/rules
    • state (for alerting rules only)
    • keepFiringFor (for alerting rules only)
    • evaluationTime
    • lastEvaluation
  • /api/v1/alerts
    • keepFiringSince

This commit adds the fields supported by newer Prometheus versions:

* /api/v1/rules
  * `state` (for alerting rules only)
  * `keepFiringFor` (for alerting rules only)
  * `evaluationTime`
  * `lastEvaluation`
* /api/v1/alerts
  * `keepFiringSince`

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier force-pushed the update-rules-and-alerts-api-response branch from 360ca63 to 6a7bd93 Compare April 29, 2024 13:52
@simonpasquier
Copy link
Contributor Author

@squat friendly ping :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant