Telegraf Module - Initial Commit

This commit is contained in:
Mike Reeves
2018-11-16 14:12:24 -05:00
parent 80310eb461
commit 64beb29149
3 changed files with 2347 additions and 0 deletions

View File

@@ -129,3 +129,29 @@ so-core:
- 443:443
- watch:
- file: /opt/so/conf/nginx/nginx.conf
# Add Telegraf to monitor all the things.
tgraflogdir:
file.directory:
- name: /opt/so/log/telegraf
- makedirs: True
tgrafetcdir:
file.directory:
- name: /opt/so/conf/telegraf/etc
- makedirs: True
so-telegraf:
docker_container.running:
- image: soshybridhunter/so-telegraf:HH1.0.4
- hostname: telegraf
- binds:
- /opt/so/log/telegraf:/var/log/telegraf:rw
- /opt/so/conf/telegraf/etc/telegraf.conf:/etc/telegraf/relegraf.conf:ro
- /var/run/utmp:/var/run/utmp:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /:/host:ro
- /sys:/host/sys:ro
- /proc:/host/proc:ro
- /nsm:/host/nsm:ro
- /etc:/host/etc:ro

File diff suppressed because it is too large Load Diff

View File

@@ -144,6 +144,27 @@ enable_masternode_ES_9300_{{ip}}:
- position: 1
- save: True
enable_masternode_influxdb_8083_{{ip}}:
iptables.insert:
- table: filter
- chain: DOCKER-USER
- jump: ACCEPT
- proto: tcp
- source: {{ ip }}
- dport: 8083
- position: 1
- save: True
enable_masternode_influxdb_8086_{{ip}}:
iptables.insert:
- table: filter
- chain: DOCKER-USER
- jump: ACCEPT
- proto: tcp
- source: {{ ip }}
- dport: 8086
- position: 1
- save: True
{% endfor %}
@@ -194,6 +215,30 @@ enable_salt_minions_3142_{{ip}}:
- position: 1
- save: True
# Allow Influx DB access to minions so they can send in stats
enable_minion_influxdb_8083_{{ip}}:
iptables.insert:
- table: filter
- chain: DOCKER-USER
- jump: ACCEPT
- proto: tcp
- source: {{ ip }}
- dport: 8083
- position: 1
- save: True
enable_minions_influxdb_8086_{{ip}}:
iptables.insert:
- table: filter
- chain: DOCKER-USER
- jump: ACCEPT
- proto: tcp
- source: {{ ip }}
- dport: 8086
- position: 1
- save: True
{% endfor %}
# Allow Forward Nodes to send their beats traffic