Phase 7 : Monitoring Netflix App using prometheus

Table of contents

Add node exporter port 9100 in your SG of worker node.

Edit prometheus.yml file


# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["localhost:9090"]

  - job_name: "node_exporter"
    static_configs:
      - targets: ["3.223.103.7:9100"]
  - job_name: "jenkins"
    metrics_path: '/prometheus'
    static_configs:
      - targets: ["44.221.233.109:8080"]
  - job_name: "K8s"
    metrics_path: '/metrics'
    static_configs:
      - targets: ["52.206.227.225:9100"]

As you can see that node ip with 9100 is up