Update prometheus from 2.50.1 to 2.51.0
The following dependencies have been updated by deps:
-
gitlab-org/build/omnibus-mirror/prometheus
from 2.50.1 to 2.51.0
Release notes: https://github.com/prometheus/prometheus/releases/tag/v2.51.0
Test Plan
- Check prometheus version
- Query prometheus
- Trigger an alert (by stopping gitaly and waiting ~5min)
- Restart Gitaly
- Confirm the alert is not triggered after ~5min
Test Output
$ prometheus --version
prometheus, version 2.51.0 (branch: master, revision: c05c15512acb675e3f6cd662a6727854e93fc024)
build user: GitLab-Omnibus
build date:
go version: go1.21.7
platform: linux/amd64
tags: netgo,builtinassets,stringlabels
$ curl --silent 'localhost:9090/api/v1/query?query=up' | jq -r '.status'
success
$ curl --silent localhost:9090/api/v1/alerts | jq
{
"status": "success",
"data": {
"alerts": []
}
}
$ gitlab-ctl stop gitaly
$ curl --silent localhost:9090/api/v1/alerts | jq
{
"status": "success",
"data": {
"alerts": [
{
"labels": {
"alertname": "ServiceDown",
"instance": "localhost:9236",
"job": "gitaly"
},
"annotations": {
"description": "The service gitaly instance localhost:9236 is not responding for more than 50% of the time for 5 minutes.",
"summary": "The service gitaly is not responding"
},
"state": "firing",
"activeAt": "2024-03-25T11:43:48.720720409Z",
"value": "0e+00"
}
]
}
}
$ gitlab-ctl start gitaly
$ curl --silent localhost:9090/api/v1/alerts | jq
{
"status": "success",
"data": {
"alerts": []
}
}
Edited by Clemens Beck