Langsung ke konten utama

Prometheus - Grafana - Node_Exporter

Buat Docker Prometheus dan Grafana serta VM yang nanti akan dimonitor (data diambil menggunakan node_exporter)

===prometheus.yml===

global:
  scrape_interval:     15s 
  evaluation_interval: 15s 
  external_labels:
    monitor: 'codelab-monitor'

scrape_configs:
  - job_name: 'prometheus'
    scrape_interval:     5s
    static_configs:
      - targets: ['localhost:9090']


#################
# Node Exporter #
#################

  - job_name: 'node_exporter_labs'
    scrape_interval: 5s
    static_configs:
      - targets: ['192.168.3.57:9100']
        labels:
          group: 'node_exporter'


*localhost:9090 -> prometheus
*192.168.3.57 -> node_exporter

Komentar