add remote read
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user