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

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 <[email protected]>
@simonpasquier simonpasquier force-pushed the update-rules-and-alerts-api-response branch from 360ca63 to 6a7bd93 Compare April 29, 2024 13:52
@simonpasquier simonpasquier requested a review from squat April 29, 2024 15:30
@simonpasquier
Copy link
Contributor Author

@squat friendly ping :)

Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work! sorry for the delay!

@squat squat merged commit 59fe454 into prometheus-community:main Jun 3, 2024
4 checks passed
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.

2 participants