Skip to content

Adding a named port `monitoring`

Currently, it is not possible to scrape Prometheus metrics for gitlab-agent using PodMonitor due to the deprecation of targetPort. The only option is to use port which requires the usage of named ports.

For this reason this MR introduces the named port monitoring under container spec in templates/deployment.yaml

Link to PodMonitor spec: https://doc.crds.dev/github.com/prometheus-operator/kube-prometheus/monitoring.coreos.com/PodMonitor/v1@v0.7.0#spec-podMetricsEndpoints-port

Linked issue: #36 (closed)

Edited by Aleksandar Lukic

Merge request reports