title: Prometheus Monitoring Issue for MySQL
body: <p>I'm trying to setup a monitoring for MySQL as mentioned in this <a href="https://www.percona.com/blog/2016/02/29/graphing-mysql-performance-with-prometheus-and-grafana/" rel="nofollow noreferrer">Percona link</a></p>
  
  <p>I'm setting this up for the first time.</p>
  
  <p>This is my Prometheus config file:</p>
  
  <pre><code>    global:
    scrape_interval:     5s
    evaluation_interval: 5s
  scrape_configs:
  - job_name: linux
    static_configs:
    - targets:
      - '172.19.36.189:3306'
      labels:
        alias: db1
  
  Prometheus version:
  
  prometheus, version 1.1.2 (branch: master, revision: 36fbdcc)
  build user: root@a74d279
  build date: 20160908-13:12:43
  go version: go1.6.3
  </code></pre>
  
  <p>While I check in Prometheus targets page: I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/xTB0u.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xTB0u.jpg" alt="Error"></a></p>
  
  <p>There are no errors reported in Prometheus logs.</p>
  
  <p>When I click the metric link, the metrics page is not opening. And the state of the target is DOWN.</p>
  
  <p>I have started mysqld and node exporters properly as well.</p>
  
  <p>Where is the issue?</p>