fticks sender via telegraf
This commit is contained in:
parent
fcc70ced30
commit
09d996cde0
3 changed files with 11 additions and 1 deletions
|
@ -832,6 +832,10 @@ log.qa.sveidas.se:
|
||||||
sunet_iaas_cloud:
|
sunet_iaas_cloud:
|
||||||
eid::dockerhost:
|
eid::dockerhost:
|
||||||
eid::telegraf:
|
eid::telegraf:
|
||||||
|
ports: ['127.0.0.1:9999:9999']
|
||||||
|
sunet::fticks:
|
||||||
|
args: -j
|
||||||
|
url: http://127.0.0.1:9999/telegraf
|
||||||
autoupdate:
|
autoupdate:
|
||||||
eidas_log:
|
eidas_log:
|
||||||
sunet::rsyslog:
|
sunet::rsyslog:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require stdlib
|
require stdlib
|
||||||
require concat
|
require concat
|
||||||
|
|
||||||
class eid::telegraf(String $version = "stable", Array $volumes = []) {
|
class eid::telegraf(String $version = "stable", Array $volumes = [], Array $ports = []) {
|
||||||
$influxdb2_token = hiera("influxdb2_token","NOT_SET_IN_HIERA");
|
$influxdb2_token = hiera("influxdb2_token","NOT_SET_IN_HIERA");
|
||||||
$influxdb2_org = hiera("influxdb2_org","NOT_SET_IN_HIERA");
|
$influxdb2_org = hiera("influxdb2_org","NOT_SET_IN_HIERA");
|
||||||
$influxdb2_bucket = hiera("influxdb2_bucket","NOT_SET_IN_HIERA");
|
$influxdb2_bucket = hiera("influxdb2_bucket","NOT_SET_IN_HIERA");
|
||||||
|
@ -27,6 +27,7 @@ class eid::telegraf(String $version = "stable", Array $volumes = []) {
|
||||||
image => "docker.sunet.se/eduid/telegraf",
|
image => "docker.sunet.se/eduid/telegraf",
|
||||||
imagetag => $version,
|
imagetag => $version,
|
||||||
volumes => $_volumes,
|
volumes => $_volumes,
|
||||||
|
ports => $ports,
|
||||||
env => ["INFLUXDB2_TOKEN=$influxdb2_token","INFLUXDB2_ORG=$influxdb2_org","INFLUXDB2_BUCKET=$influxdb2_bucket"]
|
env => ["INFLUXDB2_TOKEN=$influxdb2_token","INFLUXDB2_ORG=$influxdb2_org","INFLUXDB2_BUCKET=$influxdb2_bucket"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
[[inputs.http_listener_v2]]
|
||||||
|
service_address = "0.0.0.0:9999"
|
||||||
|
methods = ["POST"]
|
||||||
|
data_source = "body"
|
||||||
|
data_format = "json"
|
Loading…
Add table
Reference in a new issue