3
0
Files
confdroid_prometheus/templates/prometheus.yml.erb
2025-12-07 16:18:47 +01:00

47 lines
1.2 KiB
Plaintext

###############################################################################
##### File created by Puppet - manual changes will be overwritten #####
###############################################################################
global:
scrape_interval: 60s
scrape_timeout: 10s
evaluation_interval: 15s
storage:
tsdb:
out_of_order_time_window: 5m
alerting:
alertmanagers:
- follow_redirects: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets: []
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 60s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- localhost:9090
basic_auth:
username: <%= @ps_auth_user %>
password: <%= @ps_auth_pass %>
remote_write:
<% if @ps_write_external == true -%>
- url: "<%= @ps_external_url %>/write"
basic_auth:
username: <%= @ps_auth_ext_user %>
password: <%= @ps_auth_ext_pass %>
<% end -%>
remote_read:
<% if @ps_write_external == true -%>
- url: "<%= @ps_external_url %>/read"
basic_auth:
username: <%= @ps_auth_ext_user %>
password: <%= @ps_auth_ext_pass %>
<% end -%>