# ----------------------------------------------
# MAIN APPLICATION CONFIG

# url and port where application is published
server.port=8080
public.url=http://localhost:8080

# enable/disable debug logging level
debug=false

# session timeout in seconds (21600 = 6 hours)
server.servlet.session.timeout=21600

# admin user/password to manage KafkaCenter
spring.security.user.name=admin
spring.security.user.password=admin

# url and user/password for mysql database
# if remote, make sure the user has adequate privileges (google "mysql grant privileges")
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/kafka_center?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=123456


# ----------------------------------------------
# MONITOR

# enable/disable functionality
monitor.enable=true

# statistic collection frequency
monitor.collect.period.minutes=5

# elasticsearch config
monitor.elasticsearch.hosts=localhost:9200
monitor.elasticsearch.index=kafka_center_monitor
#monitor.elasticsearch.auth.user=
#monitor.elasticsearch.auth.password=


# ----------------------------------------------
# ALERTS

# enable/disable functionality to send consumer group lag alerts
alert.enable=false

# url of alert service (leave empty for regular internal application)
alert.service=

# default time window and threshold 
alert.dispause=2

# default threshold
alert.threshold=1000

# environment variable included in alerts
alter.env=other


# ----------------------------------------------
# EMAILS

# enable/disable functionality to trigger emails for alerts
mail.enable=false

# configuration of external mail host
spring.mail.host=
spring.mail.username=KafkaCenter@xaecbd.com
#spring.mail.password=xxxix


# ----------------------------------------------
# KAFKA CONNECT

# url where kafka connect is installed
connect.url=http://localhost:8000/#/


# ----------------------------------------------
# OAUTH2 KAFKACENTER LOGIN

# enable/disable functionality to log into application via external oauth service
generic.enabled=false

# name of service on login page
generic.name=oauth2 Login

# settings of external oauth service
generic.auth_url=
generic.token_url=
generic.redirect_utl=
generic.api_url=
generic.client_id=
generic.client_secret=
generic.scopes=


# ----------------------------------------------
# VARIOUS ADVANCED CONFIGS

# default kafka topic retention time
system.topic.ttl.h=16

# enable/disable default spring boot actuator health indicators
management.health.defaults.enabled=false

# hikari connection pool configurations 
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.maximum-pool-size=15
spring.datasource.hikari.pool-name=KafkaCenterHikariCP
spring.datasource.hikari.max-lifetime=30000
spring.datasource.hikari.connection-test-query=SELECT 1

# mysql driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# enable/disable collecting list of kafka topics regularly, and set interval of collection
collect.topic.enable=true
collect.topic.period.minutes=10

# enable/disable that collection threads only collect metrics of certain cluster locations
# the location specified must be one of remote.locations below
monitor.collector.include.enable=false
monitor.collector.include.location=dev

# enable remote querying to improve lag collection behaviour, solving problems induced by latency between different locations
remote.query.enable=false
remote.hosts=gqc@localhost2:8080
remote.locations=dev,gqc

# enable/disable collecting list of ksql job regularly, and set interval of collection
collect.ksql.info.job.enable=false
collect.ksql.info.job.period.minutes=5

# enable/disable collecting list of connector job regularly, and set interval of collection
collect.connector.job.enable=false
collect.connector.job.period.minutes=4

# alert group api for alert
alert.alarm.group.api=