Created
April 16, 2021 12:30
-
-
Save Nurlan199206/c57d13fd9e4ef03f0a18d8c7438802a6 to your computer and use it in GitHub Desktop.
mysqld_exporter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemd service | |
================================================ | |
[Unit] | |
Description=MySQL Exporter Service | |
Wants=network.target | |
After=network.target | |
[Service] | |
User=root | |
Group=root | |
Environment="DATA_SOURCE_NAME=root:123@(127.0.0.1:3306)/" | |
Type=simple | |
ExecStart=/etc/mysql_exporter/mysqld_exporter | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target | |
================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment