3
0

add remote read

This commit is contained in:
12ww1160
2025-12-07 16:18:47 +01:00
parent 89a6b52ed3
commit 2cfa007c17
2 changed files with 9 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ class prometheus_cd::params (
# remote write external
Boolean $ps_write_external = false,
String $ps_external_url = 'http://changeme.local/write',
String $ps_external_url = 'http://changeme.local',
# pruning script
Boolean $ps_enable_pruning = false,

View File

@@ -33,7 +33,14 @@ scrape_configs:
password: <%= @ps_auth_pass %>
remote_write:
<% if @ps_write_external == true -%>
- url: "<%= @ps_external_url %>"
- 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 %>