OP#662 add flags for queue_config
This commit is contained in:
@@ -14,6 +14,9 @@
|
|||||||
# timestamps in prometheus metrics
|
# timestamps in prometheus metrics
|
||||||
# @param [Boolean] ay_prom_track_timestamps_staleness whether to track timestamps
|
# @param [Boolean] ay_prom_track_timestamps_staleness whether to track timestamps
|
||||||
# staleness in prometheus metrics
|
# staleness in prometheus metrics
|
||||||
|
# @param [String] ay_prom_max_shards the maximum number of shards to use for prometheus metrics
|
||||||
|
# @param [String] ay_prom_max_samples_per_send the maximum number of samples to send
|
||||||
|
# @param [String] ay_prom_batch_send_deadline the maximum time to wait before sending
|
||||||
# @summary Class contains all parameters for the confdroid_alloy module.
|
# @summary Class contains all parameters for the confdroid_alloy module.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class confdroid_alloy::params (
|
class confdroid_alloy::params (
|
||||||
@@ -33,6 +36,9 @@ class confdroid_alloy::params (
|
|||||||
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||||
Boolean $ay_prom_honor_timestamps = true,
|
Boolean $ay_prom_honor_timestamps = true,
|
||||||
Boolean $ay_prom_track_timestamps_staleness = true,
|
Boolean $ay_prom_track_timestamps_staleness = true,
|
||||||
|
String $ay_prom_max_shards = '10',
|
||||||
|
String $ay_prom_max_samples_per_send = '2000',
|
||||||
|
String $ay_prom_batch_send_deadline = '5s',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# service
|
# service
|
||||||
|
|||||||
@@ -94,6 +94,11 @@ prometheus.remote_write "prometheus" {
|
|||||||
username = "<%= @ay_loki_username %>"
|
username = "<%= @ay_loki_username %>"
|
||||||
password = "<%= @ay_loki_userpass %>"
|
password = "<%= @ay_loki_userpass %>"
|
||||||
}
|
}
|
||||||
|
queue_config {
|
||||||
|
max_shards = <%= @ay_prom_max_shards %>
|
||||||
|
max_samples_per_send = <%= @ay_prom_max_samples_per_send %>
|
||||||
|
batch_send_deadline = <%= @ay_prom_batch_send_deadline %>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<% end %>
|
<% end %>
|
||||||
Reference in New Issue
Block a user