requested to merge 16-allow-for-optionall-exposing-the-gitlab-runner-metrics-server-for-prometheus-monitoring into main
Closes #16 (closed)
runner_listen_address input variable for adding output of Prometheus-ready metrics from runner on host:port for the Prometheus server (or ":" only to allow any IP; warning: security vulnerability)
configure_gitlab_runner function to the configuration bash scripting that currently sets the listen address for the runner via the config.toml. Tried to use the
gitlab-runner run --listen-address method but this is a blocking call, which won't work for IaC provisioning
gitlab-runner start command out from
install_gitlab_runner function to
start_gitlab_runner function and refactors
user-data.sh to use this separate function at the appropriate time.
:9252 method for all servers to
curl http://<gitlab runner ip>:9252/metrics to test runner monitoring metrics
curl the runner and get the metrics in stdout, successfully.