Difference between revisions of "~/brew/etc/prometheus.yml"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
     - targets: ["localhost:[[9090]]"]
 
     - targets: ["localhost:[[9090]]"]
  
 +
== Adding a node ==
 +
global:
 +
  scrape_interval: 15s
 +
 +
scrape_configs:
 +
  - job_name: "prometheus"
 +
    static_configs:
 +
    - targets: ["localhost:9090"]
 +
 +
  - job_name: "yourlocalnodeexporter"
 +
    static_configs:
 +
    - targets: ["localhost:[[9100]]"]
  
 
== See also ==
 
== See also ==

Latest revision as of 09:27, 1 April 2024


Default macOS[edit]

global:
  scrape_interval: 15s

scrape_configs:
  - job_name: "prometheus"
    static_configs:
    - targets: ["localhost:9090"]

Adding a node[edit]

global:
  scrape_interval: 15s

scrape_configs:
  - job_name: "prometheus"
    static_configs:
    - targets: ["localhost:9090"]

  - job_name: "yourlocalnodeexporter"
    static_configs:
    - targets: ["localhost:9100"]

See also[edit]

Advertising: