127 lines
3.0 KiB
Plaintext
127 lines
3.0 KiB
Plaintext
region: <%= @region_name %>
|
|
|
|
accessedViaHttps: false
|
|
|
|
metricsTopic: metrics
|
|
|
|
eventsTopic: events
|
|
|
|
maxQueryLimit: <%= @max_query_limit %>
|
|
|
|
<% if @valid_notif_periods and not @valid_notif_periods.empty? -%>
|
|
validNotificationPeriods:
|
|
<% @valid_notif_periods.each do |period| -%>
|
|
- <%= period %>
|
|
<%- end -%>
|
|
<% end -%>
|
|
|
|
kafka:
|
|
brokerUris:
|
|
- <%= @kafka_brokers %>
|
|
zookeeperUris:
|
|
- <%= @zookeeper_servers %>
|
|
healthCheckTopic: healthcheck
|
|
|
|
mysql:
|
|
driverClass: com.mysql.jdbc.Driver
|
|
url: jdbc:mysql://<%= @sql_host %>:<%= @sql_port %>/mon?connectTimeout=5000&autoReconnect=true
|
|
user: <%= @sql_user %>
|
|
password: <%= @sql_password %>
|
|
maxWaitForConnection: 1s
|
|
validationQuery: "/* MyService Health Check */ SELECT 1"
|
|
minSize: 8
|
|
maxSize: 32
|
|
checkConnectionWhileIdle: <%= @check_conn_while_idle %>
|
|
checkConnectionOnBorrow: true
|
|
|
|
databaseConfiguration:
|
|
databaseType: <%= @database_type %>
|
|
|
|
influxDB:
|
|
name: mon
|
|
version: V9
|
|
maxHttpConnections: 100
|
|
gzip: <%= @gzip_setting %>
|
|
replicationFactor: 1
|
|
url: http://<%= @database_host %>:8086
|
|
user: <%= @api_db_user %>
|
|
password: <%= @api_db_password %>
|
|
|
|
vertica:
|
|
driverClass: com.vertica.jdbc.Driver
|
|
url: jdbc:vertica://<%= @database_host %>:5433/mon
|
|
user: <%= @api_db_user %>
|
|
password: <%= @api_db_password %>
|
|
maxWaitForConnection: <%= @api_db_wait %>
|
|
validationQuery: "/* MyService Health Check */ SELECT 1"
|
|
minSize: <%= @api_db_thread_min %>
|
|
maxSize: <%= @api_db_thread_max %>
|
|
checkConnectionWhileIdle: <%= @check_conn_while_idle %>
|
|
dbHint: <%= @vertica_db_hint %>
|
|
|
|
middleware:
|
|
enabled: true
|
|
serverVIP: <%= @keystone_endpoint %>
|
|
serverPort: 5000
|
|
connTimeout: 5000
|
|
connSSLClientAuth: true
|
|
keystore: None
|
|
keystorePassword: None
|
|
connPoolMaxActive: 3
|
|
connPoolMaxIdle: 3
|
|
connPoolEvictPeriod: 600000
|
|
connPoolMinIdleTime: 600000
|
|
connRetryTimes: 2
|
|
connRetryInterval: 50
|
|
defaultAuthorizedRoles: <%= @roles_default %>
|
|
<%- if @roles_read_only and not @roles_read_only.empty? -%>
|
|
readOnlyAuthorizedRoles: <%= @roles_read_only %>
|
|
<%- end -%>
|
|
agentAuthorizedRoles: <%= @roles_agent %>
|
|
delegateAuthorizedRole: <%= @role_delegate %>
|
|
adminRole: <%= @role_admin %>
|
|
adminAuthMethod: <%= @auth_method %>
|
|
adminUser: <%= @admin_name %>
|
|
adminPassword: <%= @admin_password %>
|
|
adminProjectName: <%= @admin_project_name %>
|
|
adminToken: <%= @keystone_admin_token %>
|
|
timeToCacheToken: 600
|
|
maxTokenCacheSize: 1048576
|
|
|
|
server:
|
|
applicationConnectors:
|
|
- type: http
|
|
maxRequestHeaderSize: 16KiB
|
|
port: <%= @monasca_api_port %>
|
|
|
|
logging:
|
|
|
|
level: INFO
|
|
|
|
loggers:
|
|
|
|
com.example.app: DEBUG
|
|
|
|
appenders:
|
|
- type: console
|
|
threshold: ALL
|
|
timeZone: UTC
|
|
target: stdout
|
|
logFormat:
|
|
|
|
- type: file
|
|
currentLogFilename: /var/log/monasca/monasca-api.log
|
|
threshold: ALL
|
|
archive: true
|
|
archivedLogFilenamePattern: /var/log/monasca/monasca-api-%d.log.gz
|
|
archivedFileCount: 5
|
|
timeZone: UTC
|
|
logFormat:
|
|
|
|
- type: syslog
|
|
host: localhost
|
|
port: 514
|
|
facility: local0
|
|
threshold: ALL
|
|
logFormat:
|