My Pod is not appearing in the prometheus targets
the application is exposing metrics '/metrics'
I added a service monitor to expose the service
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: abc
# Change this to the namespace the Prometheus instance is running in
# namespace: default
labels:
app: abc
release: prometheus
spec:
selector:
matchLabels:
app: abc # target gitlab service
endpoints:
- port: http
interval: 15s
path: /metrics
but still prometheus can't read the metrics