Open andrvin opened 6 years ago
Hi @andrvin this should work, you have to replace the selector label and the namespace.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: jmx
namespace: monitoring
labels:
k8s-app: jmx
spec:
selector:
matchLabels:
your_label_key: your_label_value
endpoints:
- port: monitoring
interval: 10s
namespaceSelector:
matchNames:
- your_app_namespace
Save it to a file and kubectl create -f file.yaml
how does the attribute "port" work in prometheus ? i cant use integers there, so what is the convention being used ?
Hi guys! Thank you for your job! Everything is good, but I just don't know how to get metrics from prometheus jmx exporter agent. The agent is installed in app container and listen on 9090 port:
How I can add this new target into prometheus configuration? Usually I just have to edit prometheus.yml config file, but I don't understand how to add it into your configuration.