SCHEDULED DOWNTIME: GitLab's virtual host must be rebooted to increase system resources. The reboot will occur on Wednesday, 2024-05-15, between 6:00 and 7:00 PM.
@@ -68,3 +68,10 @@ Now we need to make Prometheus aware of this new target. For this we will use Se
...
@@ -68,3 +68,10 @@ Now we need to make Prometheus aware of this new target. For this we will use Se
To export metrics from `frontend` we will use [nginx-prometheus-exporter](https://github.com/nginxinc/nginx-prometheus-exporter). Since nginx exporter is a docker container, it is easiest to add it to our frontend pod as a [sidecar](https://medium.com/bb-tutorials-and-thoughts/kubernetes-learn-sidecar-container-pattern-6d8c21f873d). Next we edit our `nginx.conf` to return [stub-stats](http://nginx.org/en/docs/http/ngx_http_stub_status_module.html) at specified port, and that should be it.
To export metrics from `frontend` we will use [nginx-prometheus-exporter](https://github.com/nginxinc/nginx-prometheus-exporter). Since nginx exporter is a docker container, it is easiest to add it to our frontend pod as a [sidecar](https://medium.com/bb-tutorials-and-thoughts/kubernetes-learn-sidecar-container-pattern-6d8c21f873d). Next we edit our `nginx.conf` to return [stub-stats](http://nginx.org/en/docs/http/ngx_http_stub_status_module.html) at specified port, and that should be it.
#### Preview
#### Preview
Now we should see our two new targets in Prometheus UI: