Answer the question
In order to leave comments, you need to log in
How to monitor Java application data in prometheus deployed in openshift?
There is a variable in the program:
static final Counter exampleCounter = Counter.build()
.name("exampleCounter")
.help("example counter")
.register();
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: prometheus-example-monitor
name: prometheus-example-monitor
namespace: ns1
spec:
endpoints:
- interval: 30s
port: web
scheme: http
selector:
matchLabels:
app: prometheus-example-app
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question