Skip to content

Instantly share code, notes, and snippets.

View descrepes's full-sized avatar
🏠
Working from home

descrepes

🏠
Working from home
View GitHub Profile
{
"id": 5,
"title": "Influxdb Cluster",
"originalTitle": "Influxdb Cluster",
"tags": [
"monitoring"
],
"style": "dark",
"timezone": "browser",
"editable": true,
dashboard.annotations = {
list: [
{
datasource: "Shinken2",
enable: false,
iconColor: "rgb(255, 0, 0)",
iconSize: 20,
index: "",
lineColor: "rgba(255, 0, 0, 0.26)",
name: "Critical",
{
"id": 22,
"title": "Shinken Alerts",
"originalTitle": "Shinken Alerts",
"tags": [
"monitoring"
],
"style": "dark",
"timezone": "browser",
"editable": true,
@descrepes
descrepes / influxdb.conf
Created October 30, 2015 10:31
Data part of influxdb.conf (wal setup)
[data]
dir = "/var/opt/influxdb/data"
# Controls the engine type for new shards. Options are b1, bz1, or tsm1.
# b1 is the 0.9.2 storage engine, bz1 is the 0.9.3 and 0.9.4 engine.
# tsm1 is the 0.9.5 engine
engine ="tsm1"
# The following WAL settings are for the b1 storage engine used in 0.9.2. They won't
# apply to any new shards created after upgrading to a version > 0.9.3.
max-wal-size = 104857600 # Maximum size the WAL can reach before a flush. Defaults to 100MB.
wal-flush-interval = "10m" # Maximum time data can sit in WAL before a flush.
augtool -A -t 'Toml incl /root/test.toml'
augtool> print
/augeas
/augeas/root = "/"
/augeas/context = "/files"
/augeas/variables
/augeas/version = "1.4.0"
/augeas/version/save
/augeas/version/save/mode[1] = "backup"
/augeas/version/save/mode[2] = "newfile"