cookbook-monasca-api/templates/default/mon-service-config.yml.erb

101 lines
2.7 KiB
Plaintext

# The region for which all metrics passing through this server will be persisted
region: <%= @setting['api_region'] %>
# Whether this server is running on a secure port
accessedViaHttps: false
# Topic for publishing metrics to
metricsTopic: metrics
# Topic for publishing domain events to
eventsTopic: events
kafka:
brokerUris:
<%- @setting['kafka']['hostname'].split(',').each do |host| %>
- <%= host %>:9092
<%- end %>
zookeeperUris:
<%- @setting['zookeeper']['hostname'].split(',').each do |host| %>
- <%= host %>:2181
<%- end %>
healthCheckTopic: healthcheck
mysql:
driverClass: com.mysql.jdbc.Driver
url: jdbc:mysql://<%= @creds['mysql']['hostname']%>:3306/<%=@creds['mysql']['schema']%>?connectTimeout=5000&autoReconnect=true
user: <%=@creds['mysql']['username'] %>
password: <%=@creds['mysql']['password'] %>
maxWaitForConnection: 1s
validationQuery: "/* MyService Health Check */ SELECT 1"
minSize: 8
maxSize: 32
checkConnectionWhileIdle: false
checkConnectionOnBorrow: true
vertica:
driverClass: com.vertica.jdbc.Driver
url: jdbc:vertica://<%= @creds['vertica']['hostname']%>/<%=@creds['vertica']['schema']%>
user: <%=@creds['vertica']['username'] %>
password: <%=@creds['vertica']['password'] %>
maxWaitForConnection: 1s
validationQuery: "/* MyService Health Check */ SELECT 1"
minSize: 4
maxSize: 32
checkConnectionWhileIdle: false
middleware:
enabled: false
serviceIds: 100
endpointIds: 160
serverVIP: <%= @creds['middleware']['serverVip'] %>
serverPort: 9543
connTimeout: 500
connSSLClientAuth: true
keystore: /etc/ssl/hpmiddleware-keystore.jks
keystorePass: changeit
truststore: /etc/ssl/hpmiddleware-truststore.jks
truststorePass: <%= @creds['middleware']['truststore_password'] %>
connPoolMaxActive: 3
connPoolMaxIdle: 3
connPoolEvictPeriod: 600000
connPoolMinIdleTime: 600000
connRetryTimes: 2
connRetryInterval: 50
rolesToMatch: [user, domainuser, domainadmin]
# Logging settings.
logging:
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
level: INFO
# Logger-specific levels.
loggers:
# Sets the level for 'com.example.app' to DEBUG.
com.example.app: DEBUG
appenders:
- type: console
threshold: ALL
timeZone: UTC
target: stdout
logFormat: # TODO
- type: file
currentLogFilename: /var/log/mon-api/mon-api.log
threshold: ALL
archive: true
archivedLogFilenamePattern: /var/log/mon-api/mon-api-%d.log.gz
archivedFileCount: 5
timeZone: UTC
logFormat: # TODO
- type: syslog
host: localhost
port: 514
facility: local0
threshold: ALL
logFormat: # TODO