Skip to content

Instantly share code, notes, and snippets.

@Nurlan199206
Created April 16, 2021 12:30
Show Gist options
  • Save Nurlan199206/c57d13fd9e4ef03f0a18d8c7438802a6 to your computer and use it in GitHub Desktop.
Save Nurlan199206/c57d13fd9e4ef03f0a18d8c7438802a6 to your computer and use it in GitHub Desktop.
mysqld_exporter
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