I have installed:
helm install kube-prometheus bitnami/kube-prometheus -f values.yaml
Contents values.yaml:
kind: ServiceMonitor
metadata:
name: myservice
labels:
app: myservice
release: prometheus
spec:
selector:
matchLabels:
app: myservice
endpoints:
- targetPort: 10100
- interval: 5s
path: /prometheus
namespaceSelector:
any: true
I launch prometheus dashboard through port-forward and see myservice in prometheus target & prometheus service discovery.
Problem:
I do not see any metrics of my service in prometheus dashboard
http://localhost/graph and therefore I can not use these metrics to build graphs or create a PromQL query.