add option to include node exporter
This commit is contained in:
@@ -64,7 +64,15 @@ prometheus.scrape "scrape_system" {
|
||||
forward_to = [prometheus.remote_write.prometheus.receiver]
|
||||
scrape_interval = "15s"
|
||||
}
|
||||
|
||||
<% if @ay_manage_ne == true -%>
|
||||
prometheus.scrape "node_exporter" {
|
||||
targets = [
|
||||
{ __address__ = "localhost:9100" },)
|
||||
]
|
||||
forward_to = [prometheus.remote_write.prometheus.receiver]
|
||||
scrape_interval = "15s"
|
||||
}
|
||||
<% end %>
|
||||
prometheus.remote_write "prometheus" {
|
||||
endpoint {
|
||||
url = "<%= @ay_prom_url %>"
|
||||
|
||||
Reference in New Issue
Block a user