Added influxdb support to the template
This commit is contained in:
parent
8f93f31b5f
commit
c4286bedc5
@ -4,4 +4,4 @@ maintainer_email "hpcs-mon-som@hp.com"
|
|||||||
license "All rights reserved"
|
license "All rights reserved"
|
||||||
description "Installs/Configures mon_api"
|
description "Installs/Configures mon_api"
|
||||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||||
version "0.0.8"
|
version "0.0.9"
|
||||||
|
@ -34,8 +34,9 @@ mysql:
|
|||||||
checkConnectionOnBorrow: true
|
checkConnectionOnBorrow: true
|
||||||
|
|
||||||
databaseConfiguration:
|
databaseConfiguration:
|
||||||
|
<%- if @setting['database-configuration']['database-type'] == 'vertica' %>
|
||||||
# vertica | influxdb
|
# vertica | influxdb
|
||||||
databaseType: <%= @setting['database-configuration']['database-type'] %>
|
databaseType: vertica
|
||||||
|
|
||||||
# Uncomment if databaseType is influxDB
|
# Uncomment if databaseType is influxDB
|
||||||
#influxDB:
|
#influxDB:
|
||||||
@ -56,6 +57,30 @@ vertica:
|
|||||||
minSize: 4
|
minSize: 4
|
||||||
maxSize: 32
|
maxSize: 32
|
||||||
checkConnectionWhileIdle: false
|
checkConnectionWhileIdle: false
|
||||||
|
<%- else %>
|
||||||
|
# vertica | influxdb
|
||||||
|
databaseType: influxdb
|
||||||
|
|
||||||
|
# Uncomment if databaseType is influxDB
|
||||||
|
influxDB:
|
||||||
|
name: <%= @setting['influxdb']['dbname'] %>
|
||||||
|
replicationFactor: 1
|
||||||
|
url: http://<%= @setting['influxdb']['hostname'] %>:8086
|
||||||
|
user: <%=@creds['influxdb']['username'] %>
|
||||||
|
password: <%=@creds['influxdb']['password'] %>
|
||||||
|
|
||||||
|
# Uncomment if databaseType is vertica
|
||||||
|
#vertica:
|
||||||
|
# driverClass: com.vertica.jdbc.Driver
|
||||||
|
# url: jdbc:vertica://localhost/mon
|
||||||
|
# user: dbadmin
|
||||||
|
# password: password
|
||||||
|
# maxWaitForConnection: 1s
|
||||||
|
# validationQuery: "/* MyService Health Check */ SELECT 1"
|
||||||
|
# minSize: 4
|
||||||
|
# maxSize: 32
|
||||||
|
# checkConnectionWhileIdle: false
|
||||||
|
<%- end %>
|
||||||
|
|
||||||
middleware:
|
middleware:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
Loading…
Reference in New Issue
Block a user