Google Cloud PlatformのVMインスタンスにInfluxDBとGrafanaをインストールする
InfluxDBのインストールとサービスの起動
$ sudo dpkg -i influxdb_1.7.8_amd64.deb
$ sudo systemctl unmask influxdb.service
$ sudo systemctl start influxdb
$ sudo systemctl status influxdb
code:/etc/influxdb/influxdb.conf
# Determines whether HTTP endpoint is enabled.
enabled = true
# The bind address used by the HTTP service.
bind-address = ":8086"
# Determines whether user authentication is enabled over HTTP/HTTPS.
auth-enabled = true
# CacheMaxMemorySize is the maximum size a shard's cache can
# reach before it starts rejecting writes.
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
cache-max-memory-size = "100m"
$ sudo systemctl restart influxdb
Grafanaのインストールとサービスの起動
$ sudo dpkg -i grafana_6.3.3_amd64.deb
$ sudo systemctl daemon-reload
$ sudo systemctl start grafana-server
$ sudo systemctl status grafana-server
$ sudo systemctl enable grafana-server.service