Deploy InfluxDB for Prometheus remote storage
This change deploys the InfluxDB service on the mon nodes of
virtual-mcp11-{dvr,contrail,k8s-calico,k8s-contrail}. InfluxDB will be
used by Prometheus for long-term storage.
Change-Id: Ibfb2dd08e539dbd0bb73ef03713f5f0d77d7da40
diff --git a/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml b/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml
index ecbaa80..ef47ea4 100644
--- a/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml
@@ -1,5 +1,6 @@
classes:
- system.docker.host
+- system.linux.system.repo.influxdb
- system.linux.system.repo.tcp_elastic
# Needed to install Galera packages
- system.linux.system.repo.mcp.openstack
@@ -8,6 +9,7 @@
- system.kibana.server.single
- system.haproxy.proxy.listen.stacklight.elasticsearch
- system.haproxy.proxy.listen.stacklight.kibana
+- system.haproxy.proxy.listen.stacklight.influxdb
- service.haproxy.proxy.single
- system.glusterfs.client.cluster
- system.glusterfs.client.volume.prometheus
@@ -15,6 +17,8 @@
- system.glusterfs.server.volume.prometheus
- system.galera.server.cluster
- system.galera.server.database.grafana
+- system.influxdb.server.single
+- system.influxdb.database.stacklight
- system.salt.minion.cert.prometheus_server
- system.keepalived.cluster.instance.prometheus_server_vip
- system.telegraf.agent.remote
@@ -55,6 +59,9 @@
grafana_database_host: ${_param:cluster_vip_address}
grafana_database_password: ${_param:mysql_grafana_password}
grafana_database_type: mysql
+ influxdb_port: 8086
+ influxdb_admin_password: password
+ influxdb_stacklight_password: lmapass
keepalived:
cluster:
instance: