From 86f150bd6d77079384a19d5fad15a382d0f76282 Mon Sep 17 00:00:00 2001 From: mblackstock Date: Wed, 19 Jun 2019 19:25:28 -0700 Subject: [PATCH] update to latest influxdb lib --- docker/influxdb.conf | 153 +++++++++++++++++++++++++++++++++++++++++++ docker/run.sh | 4 ++ package-lock.json | 8 +-- package.json | 4 +- 4 files changed, 163 insertions(+), 6 deletions(-) create mode 100644 docker/influxdb.conf create mode 100755 docker/run.sh diff --git a/docker/influxdb.conf b/docker/influxdb.conf new file mode 100644 index 0000000..ea8e700 --- /dev/null +++ b/docker/influxdb.conf @@ -0,0 +1,153 @@ +reporting-disabled = false +bind-address = "127.0.0.1:8088" + +[meta] + dir = "/var/lib/influxdb/meta" + retention-autocreate = true + logging-enabled = true + +[data] + dir = "/var/lib/influxdb/data" + index-version = "inmem" + wal-dir = "/var/lib/influxdb/wal" + wal-fsync-delay = "0s" + validate-keys = false + query-log-enabled = true + cache-max-memory-size = 1073741824 + cache-snapshot-memory-size = 26214400 + cache-snapshot-write-cold-duration = "10m0s" + compact-full-write-cold-duration = "4h0m0s" + compact-throughput = 50331648 + compact-throughput-burst = 50331648 + max-series-per-database = 1000000 + max-values-per-tag = 100000 + max-concurrent-compactions = 0 + max-index-log-file-size = 1048576 + series-id-set-cache-size = 100 + trace-logging-enabled = false + tsm-use-madv-willneed = false + +[coordinator] + write-timeout = "10s" + max-concurrent-queries = 0 + query-timeout = "0s" + log-queries-after = "0s" + max-select-point = 0 + max-select-series = 0 + max-select-buckets = 0 + +[retention] + enabled = true + check-interval = "30m0s" + +[shard-precreation] + enabled = true + check-interval = "10m0s" + advance-period = "30m0s" + +[monitor] + store-enabled = true + store-database = "_internal" + store-interval = "10s" + +[subscriber] + enabled = true + http-timeout = "30s" + insecure-skip-verify = true + ca-certs = "" + write-concurrency = 40 + write-buffer-size = 1000 + +[http] + enabled = true + bind-address = ":8086" + auth-enabled = false + log-enabled = true + suppress-write-log = false + write-tracing = false + flux-enabled = false + flux-log-enabled = false + pprof-enabled = true + debug-pprof-enabled = false + https-enabled = false + https-certificate = "/etc/ssl/influxdb.pem" + https-private-key = "" + max-row-limit = 0 + max-connection-limit = 0 + shared-secret = "" + realm = "InfluxDB" + unix-socket-enabled = false + unix-socket-permissions = "0777" + bind-socket = "/var/run/influxdb.sock" + max-body-size = 25000000 + access-log-path = "" + max-concurrent-write-limit = 0 + max-enqueued-write-limit = 0 + enqueued-write-timeout = 30000000000 + +[logging] + format = "auto" + level = "info" + suppress-logo = false + +[[graphite]] + enabled = false + bind-address = ":2003" + database = "graphite" + retention-policy = "" + protocol = "tcp" + batch-size = 5000 + batch-pending = 10 + batch-timeout = "1s" + consistency-level = "one" + separator = "." + udp-read-buffer = 0 + +[[collectd]] + enabled = false + bind-address = ":25826" + database = "collectd" + retention-policy = "" + batch-size = 5000 + batch-pending = 10 + batch-timeout = "10s" + read-buffer = 0 + typesdb = "/usr/share/collectd/types.db" + security-level = "none" + auth-file = "/etc/collectd/auth_file" + parse-multivalue-plugin = "split" + +[[opentsdb]] + enabled = false + bind-address = ":4242" + database = "opentsdb" + retention-policy = "" + consistency-level = "one" + tls-enabled = false + certificate = "/etc/ssl/influxdb.pem" + batch-size = 1000 + batch-pending = 5 + batch-timeout = "1s" + log-point-errors = true + +[[udp]] + enabled = false + bind-address = ":8089" + database = "udp" + retention-policy = "" + batch-size = 5000 + batch-pending = 10 + read-buffer = 0 + batch-timeout = "1s" + precision = "" + +[continuous_queries] + log-enabled = true + enabled = true + query-stats-enabled = false + run-interval = "1s" + +[tls] + min-version = "" + max-version = "" + diff --git a/docker/run.sh b/docker/run.sh new file mode 100755 index 0000000..0b5fda0 --- /dev/null +++ b/docker/run.sh @@ -0,0 +1,4 @@ +docker run --name influxdb -p 8086:8086 \ + -v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro \ + -v influxdb:/var/lib/influxdb \ + influxdb -config /etc/influxdb/influxdb.conf diff --git a/package-lock.json b/package-lock.json index 72abcfb..79f6c79 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "node-red-contrib-influxdb", - "version": "0.2.2", + "version": "0.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { "influx": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/influx/-/influx-5.0.7.tgz", - "integrity": "sha1-NeZfa/E8uqF2MQi1WWqAanJ6Upo=" + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/influx/-/influx-5.1.1.tgz", + "integrity": "sha512-M2xbdUZ8jfoj7D3MfxPvc49wpPJDq0QiAK7tRYcWwjeM/NNBJYATOqj+2T/Ooso3MAKfUxe9+EVQ5SBAhwlaUg==" }, "lodash": { "version": "4.17.11", diff --git a/package.json b/package.json index ccd2c2b..fd5f899 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-influxdb", - "version": "0.2.2", + "version": "0.3.0", "description": "Node-RED nodes to save and query data from an influxdb time series database", "main": "influxdb.js", "scripts": { @@ -26,7 +26,7 @@ } }, "dependencies": { - "influx": "5.0.7", + "influx": "5.1.1", "lodash": "4.17.11" } }