No Custom Metrics in Prometheus

20 views
Skip to first unread message

Unlimhost Unlimhost

unread,
Sep 22, 2021, 5:53:30 PM9/22/21
to Prometheus Users
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.
I also see all metrics of my application https://myservice/prometheus, which generates my application in prometheus-format.

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.
Reply all
Reply to author
Forward
0 new messages