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

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
== Default macOS ==
 
== Default macOS ==
 +
global:
 +
  scrape_interval: 15s
 +
 +
scrape_configs:
 +
  - job_name: "prometheus"
 +
    static_configs:
 +
    - targets: ["localhost:[[9090]]"]
 +
 +
== Adding a node ==
 
  global:
 
  global:
 
   scrape_interval: 15s
 
   scrape_interval: 15s
Line 9: Line 18:
 
     static_configs:
 
     static_configs:
 
     - targets: ["localhost:9090"]
 
     - 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: