add remote read
This commit is contained in:
@@ -83,7 +83,7 @@ class prometheus_cd::params (
|
|||||||
|
|
||||||
# remote write external
|
# remote write external
|
||||||
Boolean $ps_write_external = false,
|
Boolean $ps_write_external = false,
|
||||||
String $ps_external_url = 'http://changeme.local/write',
|
String $ps_external_url = 'http://changeme.local',
|
||||||
|
|
||||||
# pruning script
|
# pruning script
|
||||||
Boolean $ps_enable_pruning = false,
|
Boolean $ps_enable_pruning = false,
|
||||||
|
|||||||
@@ -33,7 +33,14 @@ scrape_configs:
|
|||||||
password: <%= @ps_auth_pass %>
|
password: <%= @ps_auth_pass %>
|
||||||
remote_write:
|
remote_write:
|
||||||
<% if @ps_write_external == true -%>
|
<% 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:
|
basic_auth:
|
||||||
username: <%= @ps_auth_ext_user %>
|
username: <%= @ps_auth_ext_user %>
|
||||||
password: <%= @ps_auth_ext_pass %>
|
password: <%= @ps_auth_ext_pass %>
|
||||||
|
|||||||
Reference in New Issue
Block a user