MySQL Forums
Forum List  »  MySQL & Kubernetes

Prometheus Monitoring
Posted by: sujit agarwal
Date: April 20, 2023 01:10AM

Below is my configuration but Prometheus monitoring is not working because I am not able to expose the metrics services on 9104 port.


Most of operator support in-build monitoring with Prometheus MySQL exporter monitor. Please provide the configuration how we can monitor through Prometheus MySQL exporter .

apiVersion: mysql.oracle.com/v2
kind: InnoDBCluster
metadata:
name: mycluster
spec:
secretName: mycluster-user
instances: 3
tlsUseSelfSigned: true
router:
instances: 1
podSpec:
containers:
- name: metrics
image: prom/prometheus:latest
ports:
- containerPort: 9104
env:
- name: DATA_SOURCE_NAME
value: localroot:@unix(/var/run/mysqld/mysql.sock)/
- name: collect.global_status
value: 'true'
- name: collect.info_schema.innodb_metrics
value: 'true'
volumeMounts:
- mountPath: /var/run/mysqld
name: rundir

Options: ReplyQuote


Subject
Written By
Posted
Prometheus Monitoring
April 20, 2023 01:10AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.