I'm totally new to Prometheus and I'm very confused.
I can't find any instructions on how to set up the Prometheus component of this. What I've done so far:
0. Set up GitLab runner.
1. Downloaded version 2.1.0 (linux) of Prometheus.
```
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'gitlab-runner-test-thing'
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus-gitlab-runner-test'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
static_configs:
- targets: ['localhost:9252']
```
3. Started prometheus with `./prometheus --web.listen-address="localhost:9252" --config.file=gitlab-runner-test-config.yml`
4. Ran `curl localhost:9252/metrics`. Saw stuff that didn't look related to my GitLab runner.
I think I'm wrong about setting `static_configs.targets` to `localhost:9252`. How do I figure out what this should be? (Am I wrong to be creating a config file at all? The GitLab docs aren't clear about what's built in.)