"Fossies" - the Fresh Open Source Software Archive

Member "monasca-api-3.1.0/java/src/deb/etc/api-config.yml-sample" (27 Sep 2019, 3692 Bytes) of package /linux/misc/openstack/monasca-api-3.1.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # The region for which all metrics passing through this server will be persisted
    2 region: region-a
    3 
    4 # Maximum rows (Mysql) or points (Influxdb) to return when listing elements
    5 maxQueryLimit: 10000
    6 
    7 # Whether this server is running on a secure port
    8 accessedViaHttps: false
    9 
   10 # Topic for publishing metrics to
   11 metricsTopic: metrics
   12 
   13 # Topic for publishing domain events to
   14 eventsTopic: events
   15 
   16 kafka:
   17   brokerUris:
   18     - 192.168.10.4:9092
   19   zookeeperUris:
   20     - 192.168.10.4:2181
   21   healthCheckTopic: healthcheck
   22 
   23 mysql:
   24   driverClass: com.mysql.jdbc.Driver
   25   url: jdbc:mysql://192.168.10.4:3306/mon?connectTimeout=5000&autoReconnect=true&useLegacyDatetimeCode=false
   26   user: monapi
   27   password: password
   28   maxWaitForConnection: 1s
   29   validationQuery: "/* MyService Health Check */ SELECT 1"
   30   minSize: 8
   31   maxSize: 32
   32   checkConnectionWhileIdle: false
   33   checkConnectionOnBorrow: true
   34 
   35 databaseConfiguration:
   36   databaseType: influxdb
   37 
   38 influxDB:
   39   version: V9
   40   maxHttpConnections: 100
   41   # Retention policy may be left blank to indicate default policy.
   42   retentionPolicy:
   43   name: mon
   44   url: http://192.168.10.4:8086
   45   user: mon_api
   46   password: password
   47 
   48 vertica:
   49   driverClass: com.vertica.jdbc.Driver
   50   url: jdbc:vertica://192.168.10.8/mon
   51   user: dbadmin
   52   password: password
   53   maxWaitForConnection: 1s
   54   validationQuery: "/* MyService Health Check */ SELECT 1"
   55   minSize: 4
   56   maxSize: 32
   57   checkConnectionWhileIdle: false
   58   #
   59   # vertica database hint to be added to SELECT
   60   # statements.  For example, the hint below is used
   61   # to tell vertica that the query can be satisfied
   62   # locally (replicated projection).
   63   #
   64   # dbHint: "/*+KV(01)*/"
   65   dbHint: ""
   66 
   67 middleware:
   68   enabled: true
   69   serverVIP: identity.example.com
   70   serverPort: 9543
   71   useHttps: true
   72   truststore: etc/monasca/truststore.jks
   73   truststorePass: changeit
   74   connTimeout: 500
   75   connSSLClientAuth: true
   76   keystore: etc/monasca/keystore.jks
   77   keystorePass: changeit
   78   connPoolMaxActive: 3
   79   connPoolMaxIdle: 3
   80   connPoolEvictPeriod: 600000
   81   connPoolMinIdleTime: 600000
   82   connRetryTimes: 2
   83   connRetryInterval: 50
   84   defaultAuthorizedRoles: [user, domainuser, domainadmin, monasca-user]
   85   readOnlyAuthorizedRoles: [monasca-read-only-user]
   86   agentAuthorizedRoles: [monasca-agent]
   87   adminAuthMethod: password
   88   adminUser: admin
   89   adminPassword: admin
   90   adminProjectId:
   91   adminProjectName:
   92   adminUserDomainId:
   93   adminUserDomainName:
   94   adminProjectDomainId:
   95   adminProjectDomainName:
   96   adminToken:
   97   timeToCacheToken: 600
   98   maxTokenCacheSize: 1048576
   99 
  100 server:
  101   applicationConnectors:
  102     - type: http
  103       port: 8070
  104       maxRequestHeaderSize: 16KiB  # Allow large headers used by keystone tokens
  105   requestLog:
  106    timeZone: UTC
  107    appenders:
  108     - type: file
  109       currentLogFilename: /var/log/monasca/api/request.log
  110       threshold: ALL
  111       archive: true
  112       archivedLogFilenamePattern: /var/log/monasca/api/request-%d.log.gz
  113       archivedFileCount: 5
  114 
  115 # Logging settings.
  116 logging:
  117 
  118   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
  119   level: WARN
  120 
  121   # Logger-specific levels.
  122   loggers:
  123 
  124     # Sets the level for 'com.example.app' to DEBUG.
  125     com.example.app: DEBUG
  126 
  127   appenders:
  128     - type: console
  129       threshold: ALL
  130       timeZone: UTC
  131       target: stdout
  132       logFormat: # TODO
  133 
  134     - type: file
  135       currentLogFilename: /var/log/monasca/api/monasca-api.log
  136       threshold: ALL
  137       archive: true
  138       archivedLogFilenamePattern: /var/log/monasca/api/monasca-api-%d.log.gz
  139       archivedFileCount: 5
  140       timeZone: UTC
  141       logFormat: # TODO
  142 
  143     - type: syslog
  144       host: localhost
  145       port: 514
  146       facility: local0
  147       threshold: ALL
  148       logFormat: # TODO