mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add mysqld exporter to devenv (#55773)
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
parent
dc00f6dbe3
commit
03cd7f0295
1
devenv/docker/blocks/mysql_exporter/.env
Normal file
1
devenv/docker/blocks/mysql_exporter/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
mysql_exporter_tag=v0.14.0
|
6
devenv/docker/blocks/mysql_exporter/docker-compose.yaml
Normal file
6
devenv/docker/blocks/mysql_exporter/docker-compose.yaml
Normal 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
|
5
devenv/docker/blocks/mysql_exporter/mysql-exporter.cnf
Normal file
5
devenv/docker/blocks/mysql_exporter/mysql-exporter.cnf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[client]
|
||||||
|
host=mysql
|
||||||
|
port=3306
|
||||||
|
user=grafana
|
||||||
|
password=password
|
@ -38,6 +38,9 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['prometheus-random-data:8080']
|
- targets: ['prometheus-random-data:8080']
|
||||||
|
|
||||||
|
- job_name: 'mysql'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['mysql-exporter:9104']
|
||||||
# - job_name: 'grafana-test-datasource'
|
# - job_name: 'grafana-test-datasource'
|
||||||
# metrics_path: /metrics/plugins/grafana-test-datasource
|
# metrics_path: /metrics/plugins/grafana-test-datasource
|
||||||
# static_configs:
|
# static_configs:
|
||||||
|
Loading…
Reference in New Issue
Block a user