Skip to content

Commit bfde1bc

Browse files
authored
Updating quickstart links and commands that fail on latest testing (#982)
* updating links and commands that fail on latest testing of the quickstart * provide the correct filename for changes to the quickstart config
1 parent a104529 commit bfde1bc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

examples/quickstart/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
~$ cd gitlab-ci-pipelines-exporter/examples/quickstart
1515

1616
# Provide your personal GitLab API access token (needs read_api permissions)
17-
~$ sed -i 's/<your_token>/xXF_xxjV_xxyzxzz/' gitlab-ci-pipelines-exporter.yml
17+
~$ GITLAB_PAT="<Replace with PAT>"; sed -i "s/<your_token>/${GITLAB_PAT}/" gitlab-ci-pipelines-exporter.yml
1818

1919
# Start gitlab-ci-pipelines-exporter, prometheus and grafana containers !
2020
~$ docker-compose up -d
@@ -45,7 +45,7 @@ b3500bff6038 prom/prometheus:latest "/bin/promet
4545
### Check logs from the gitlab-ci-pipelines-exporter container
4646

4747
```bash
48-
~$ docker logs -f quickstart_gitlab-ci-pipelines-exporter_1
48+
~$ docker logs -f quickstart-gitlab-ci-pipelines-exporter-1
4949
time="2020-04-28T23:09:01Z" level=info msg="starting exporter" discover-projects-refs-interval=300s discover-wildcard-projects-interval=1800s gitlab-endpoint="https://gitlab.com" on-init-fetch-refs-from-pipelines=false pulling-projects-refs-interval=30s rate-limit=10rps
5050
time="2020-04-28T23:09:01Z" level=info msg="started, now serving requests" listen-address=":8080"
5151
time="2020-04-28T23:09:01Z" level=info msg="discover wildcards" count=0
@@ -77,13 +77,13 @@ You can open this URL in your browser and should see the exporter is being confi
7777

7878
You should then be able to see the following metrics under the `gitlab_ci_` prefix:
7979

80-
[http://localhost:9090/new/graph](http://localhost:9090/new/graph)
80+
[http://localhost:9090/graph](http://localhost:9090/graph)
8181

8282
![prometheus_metrics_list](/docs/images/prometheus_metrics_list_example.png)
8383

8484
You can then validate that you get the expected values for your projects metrics, eg `gitlab_ci_pipeline_status`:
8585

86-
[http://localhost:9090/new/graph?g0.expr=gitlab_ci_pipeline_status&g0.tab=1&g0.stacked=0&g0.range_input=1h](http://localhost:9090/new/graph?g0.expr=gitlab_ci_pipeline_status&g0.tab=1&g0.stacked=0&g0.range_input=1h)
86+
[http://localhost:9090/graph?g0.expr=gitlab_ci_pipeline_status&g0.tab=1&g0.stacked=0&g0.range_input=1h](http://localhost:9090/graph?g0.expr=gitlab_ci_pipeline_status&g0.tab=1&g0.stacked=0&g0.range_input=1h)
8787

8888
![prometheus_pipeline_status_metric_example](/docs/images/prometheus_pipeline_status_metric_example.png)
8989

@@ -109,7 +109,7 @@ I believe it would be more interesting for you to be monitoring your own project
109109

110110
```bash
111111
# Edit the configuration file for the exporter
112-
~$ vi ./gitlab-ci-pipelines-exporter/config.yml
112+
~$ vi ./gitlab-ci-pipelines-exporter.yml
113113

114114
# Restart the exporter container
115115
~$ docker-compose restart gitlab-ci-pipelines-exporter

0 commit comments

Comments
 (0)