Skip to content

Commit 25d44ec

Browse files
author
Andrew Patterson
committed
Added gitlab-export upgrade test plan
Added standard test plan to be used when bumping the gitlab-exporter version.
1 parent e2d7d97 commit 25d44ec

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

test-plans/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Updating components
44

55
<!-- Keep this list sorted alphabetically. -->
6+
- [gitlab-exporter](upgrade-gitlab-exporter-testplan.md)
67
- [golang](upgrade-golang-testplan.md)
78
- [go-crond](upgrade-go-crond-testplan.md)
89
- [Mattermost](upgrade-mattermost-testplan.md)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# `gitlab-exporter` component upgrade test plan
2+
3+
<!-- Copy and paste the following into your MR description. -->
4+
## Test plan
5+
6+
- [ ] Check `gitlab-exporter` project repository for potential breaking changes at https://gitlab.com/gitlab-org/ruby/gems/gitlab-exporter.
7+
8+
- [ ] Green pipeline with `Trigger:ee-package` and `build-package-on-all-os`.
9+
10+
- [ ] `gitlab-exporter` starts. Run `sudo gitlab-ctl status gitlab-exporter` and check output
11+
to ensure `gitlab-exporter` started successfully.
12+
13+
```shell
14+
sudo gitlab-ctl status gitlab-exporter
15+
```
16+
17+
- [ ] Check exporter version. Run `/opt/gitlab/embedded/bin/gem list gitlab-exporter`
18+
19+
```shell
20+
/opt/gitlab/embedded/bin/gem list gitlab-exporter
21+
```
22+
23+
- [ ] Check that `gitlab-exporter` endpoint can be queried.
24+
25+
```shell
26+
curl --silent http://localhost:9168/metrics | head -n5
27+
```
28+
29+
- [ ] Check that prometheus scrapes `gitlab_exporter_database`, `gitlab_exporter_ruby` and `gitlab_exporter_sidekiq` by poking metrics endpoint.
30+
31+
```shell
32+
curl --silent http://localhost:9090/metrics | grep gitlab_exporter
33+
```

0 commit comments

Comments
 (0)