bundlewrap/nodes/htz-cloud/influxdb.py

126 lines
4.5 KiB
Python
Raw Permalink Normal View History

2021-04-24 07:12:25 +00:00
nodes['htz-cloud.influxdb'] = {
'hostname': '116.203.84.44',
'bundles': {
'grafana',
'influxdb2',
2024-01-23 08:30:13 +00:00
'telegraf_airgradient',
2023-04-01 05:01:03 +00:00
'telegraf-monitors-mikrotik',
2021-04-24 07:12:25 +00:00
'zfs',
},
'groups': {
'debian-bullseye',
'webserver',
2021-04-24 07:12:25 +00:00
},
'metadata': {
'apt': {
'packages': {
# for telegraf
'snmp': {},
'snmp-mibs-downloader': {},
},
},
2021-04-24 07:12:25 +00:00
'interfaces': {
'eth0': {
'ips': {
'116.203.84.44',
'2a01:4f8:c0c:8d56::1/64',
},
'gateway4': '172.31.1.1',
'gateway6': 'fe80::1',
},
'ens10': {
'ips': {
'172.19.137.6/32',
},
'routes': {
# VPN
2024-02-25 18:14:13 +00:00
'172.19.128.0/20': {
2021-04-24 07:12:25 +00:00
'via': '172.19.137.1',
},
},
},
},
'grafana': {
'domain': 'grafana.kunsmann.eu',
'login_max_duration': '30d',
},
'icinga_options': {
# no public access
'show_on_statuspage': False,
},
'nginx': {
'vhosts': {
'influxdb': {
'domain': 'influxdb.kunsmann.eu',
'locations': {
'/': {
'target': 'http://localhost:8086',
'websockets': True,
},
'/debug': {
'return': 403,
},
'/metrics': {
'return': 403,
},
},
},
},
},
2024-01-23 08:30:13 +00:00
'telegraf_airgradient': {
'Home': vault.decrypt('encrypt$gAAAAABlr3KvHLSHLFwVr5hvJ1j676Flm5fVLumqpBcffjYWXjPjSovDXCyEcVqhxfsX-GNut2dXsenFQoFShaAugLV_zVQYaLnNQipbZqI0cXfsMht1iZPyOxlSzy3YoZ3voSaeiLll'),
},
'telegraf': {
'input_plugins': {
'builtin': {
'snmp': [
{
'agents': ['udp://172.19.138.3'],
'agent_host_tag': 'host',
'field': [
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.3.0', 'name': 'battery_runtime_to_empty'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.4.0', 'name': 'battery_capacity'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.5.0', 'name': 'battery_voltage', 'conversion': 'float(1)'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.6.0', 'name': 'battery_current', 'conversion': 'float(1)'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.3.3.1.2.1', 'name': 'input_frequency', 'conversion': 'float(1)'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.3.3.1.3.1', 'name': 'input_voltage'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.2.0', 'name': 'output_frequency', 'conversion': 'float(1)'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.2.1', 'name': 'output_voltage'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.3.1', 'name': 'output_frequency', 'conversion': 'float(1)'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.4.1', 'name': 'output_watts'},
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.5.1', 'name': 'output_percent'},
],
'interval': '10s',
},
{
'agents': ['udp://172.19.138.41'],
'agent_host_tag': 'host',
'table': [{'oid': 'IF-MIB::ifTable'}],
},
],
},
},
},
#'openssh': {
# 'restrict-to': {
# 'versatel',
# },
#},
2021-04-24 07:12:25 +00:00
'vm': {
'cpu': 1,
'ram': 2,
},
'zfs': {
'pools': {
2021-08-17 16:09:51 +00:00
'tank': {
'when_creating': {
'config': [{
'devices': {'/dev/sdb'},
}],
},
},
2021-04-24 07:12:25 +00:00
},
},
},
}