Adding a named port `monitoring`
requested to merge alex.lukic/gitlab-agent:Issue36_Adding_the_named_port_to_container_spec into main
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