Skip to content

Update prometheus from 2.50.1 to 2.51.0

Ghost User requested to merge deps/cf38390-975eec1 into master

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

  1. Check prometheus version
  2. Query prometheus
  3. Trigger an alert (by stopping gitaly and waiting ~5min)
  4. Restart Gitaly
  5. 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

Merge request reports

Loading