This config was only related to 'sunet::fticks:', SC-2522
This is only configured on the QA log server.
This commit is contained in:
parent
554578c088
commit
593231999a
2 changed files with 5 additions and 2 deletions
|
@ -10,15 +10,16 @@
|
||||||
# @param influxdb2_bucket Influx bucket name (referenced in compose file)
|
# @param influxdb2_bucket Influx bucket name (referenced in compose file)
|
||||||
# @param influxdb2_bucket_proxy Influx bucket name (referenced in compose file)
|
# @param influxdb2_bucket_proxy Influx bucket name (referenced in compose file)
|
||||||
class eid::telegraf2 (
|
class eid::telegraf2 (
|
||||||
|
Enum['proxy', 'log'] $server_type,
|
||||||
String $version = 'latest',
|
String $version = 'latest',
|
||||||
String $server_fqdn = $facts['networking']['fqdn'],
|
String $server_fqdn = $facts['networking']['fqdn'],
|
||||||
Enum['proxy', 'log'] $server_type,
|
|
||||||
Array $ports = [],
|
Array $ports = [],
|
||||||
String $service_dir = '/etc/telegraf',
|
String $service_dir = '/etc/telegraf',
|
||||||
Array $influx_urls = ["https://metrics-external-1.sunet.se:8086"],
|
Array $influx_urls = ["https://metrics-external-1.sunet.se:8086"],
|
||||||
String $influxdb2_org = 'SwedenConnect',
|
String $influxdb2_org = 'SwedenConnect',
|
||||||
String $influxdb2_bucket = 'eidas',
|
String $influxdb2_bucket = 'eidas',
|
||||||
String $influxdb2_bucket_proxy = 'eidas-proxy',
|
String $influxdb2_bucket_proxy = 'eidas-proxy',
|
||||||
|
Boolean $use_fticks = false,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# Get influx password token from eyaml
|
# Get influx password token from eyaml
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
omit_hostname = false
|
omit_hostname = false
|
||||||
[[inputs.system]]
|
[[inputs.system]]
|
||||||
|
|
||||||
<% if @server_type == 'log' -%>
|
<% if @use_fticks -%>
|
||||||
[[inputs.http_listener_v2]]
|
[[inputs.http_listener_v2]]
|
||||||
service_address = "0.0.0.0:9999"
|
service_address = "0.0.0.0:9999"
|
||||||
methods = ["POST"]
|
methods = ["POST"]
|
||||||
|
@ -23,6 +23,8 @@
|
||||||
json_time_key = "ts"
|
json_time_key = "ts"
|
||||||
json_time_format = "2006-01-02 15:04:05"
|
json_time_format = "2006-01-02 15:04:05"
|
||||||
json_timezone = "Local"
|
json_timezone = "Local"
|
||||||
|
<% end -%>
|
||||||
|
<% if @server_type == 'log' -%>
|
||||||
[[inputs.tail]]
|
[[inputs.tail]]
|
||||||
files = ["/var/log/eidas_stats.log"]
|
files = ["/var/log/eidas_stats.log"]
|
||||||
data_format = "json"
|
data_format = "json"
|
||||||
|
|
Loading…
Add table
Reference in a new issue