bundles/influxdb: introduce
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
ccd4a09183
commit
27d6c1880a
5 changed files with 147 additions and 0 deletions
40
bundles/influxdb/files/influxdb.conf
Normal file
40
bundles/influxdb/files/influxdb.conf
Normal file
|
@ -0,0 +1,40 @@
|
|||
reporting-disabled = true
|
||||
|
||||
[meta]
|
||||
dir = "/var/lib/influxdb/meta"
|
||||
|
||||
[data]
|
||||
dir = "/var/lib/influxdb/data"
|
||||
wal-dir = "/var/lib/influxdb/wal"
|
||||
max-values-per-tag = 150000
|
||||
|
||||
[retention]
|
||||
enabled = true
|
||||
check-interval = "30m0s"
|
||||
|
||||
[admin]
|
||||
enabled = true
|
||||
bind-address = "127.0.0.1:8083"
|
||||
https-enabled = false
|
||||
|
||||
[http]
|
||||
enabled = true
|
||||
bind-address = ":8086"
|
||||
log-enabled = true
|
||||
https-enabled = false
|
||||
auth-enabled = true
|
||||
|
||||
[[graphite]]
|
||||
enabled = false
|
||||
|
||||
[[collectd]]
|
||||
enabled = false
|
||||
|
||||
[[opentsdb]]
|
||||
enabled = false
|
||||
|
||||
[[udp]]
|
||||
enabled = false
|
||||
|
||||
[continuous_queries]
|
||||
enabled = false
|
18
bundles/influxdb/items.py
Normal file
18
bundles/influxdb/items.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
svc_systemd = {
|
||||
'influxdb': {
|
||||
'needs': {
|
||||
'pkg_apt:influxdb',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
'/etc/influxdb/influxdb.conf': {
|
||||
'needs': {
|
||||
'pkg_apt:influxdb',
|
||||
},
|
||||
'triggers': {
|
||||
'svc_systemd:influxdb:restart',
|
||||
},
|
||||
},
|
||||
}
|
36
bundles/influxdb/metadata.py
Normal file
36
bundles/influxdb/metadata.py
Normal file
|
@ -0,0 +1,36 @@
|
|||
from bundlewrap.utils.dicts import merge_dict
|
||||
|
||||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'influxdb': {},
|
||||
},
|
||||
'repos': {
|
||||
'influxdb': {
|
||||
'items': {
|
||||
'deb https://repos.influxdata.com/{os} {os_release} stable',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
if node.has_bundle('zfs'):
|
||||
defaults = merge_dict(defaults, {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'influxdb': {
|
||||
'needs': {
|
||||
'zfs_dataset:tank/influxdb',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'zfs': {
|
||||
'datasets': {
|
||||
'tank/influxdb': {
|
||||
'mountpoint': '/var/lib/influxdb',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue