Chore: Add mysqld exporter to devenv (#55773)

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Yuri Tseretyan 2022-12-21 16:10:55 -05:00 committed by GitHub
parent dc00f6dbe3
commit 03cd7f0295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
mysql_exporter_tag=v0.14.0

View File

@ -0,0 +1,6 @@
mysql-exporter:
image: prom/mysqld-exporter:${mysql_exporter_tag}
ports:
- "9104:9104"
volumes:
- ./docker/blocks/mysql_exporter/mysql-exporter.cnf:/home/.my.cnf

View File

@ -0,0 +1,5 @@
[client]
host=mysql
port=3306
user=grafana
password=password

View File

@ -38,6 +38,9 @@ scrape_configs:
static_configs:
- targets: ['prometheus-random-data:8080']
- job_name: 'mysql'
static_configs:
- targets: ['mysql-exporter:9104']
# - job_name: 'grafana-test-datasource'
# metrics_path: /metrics/plugins/grafana-test-datasource
# static_configs: