# debug, release RunMode = "release" # # custom i18n dict config # I18N = "./etc/i18n.json" # metrics descriptions MetricsYamlFile = "./etc/metrics.yaml" BuiltinAlertsDir = "./etc/alerts" BuiltinDashboardsDir = "./etc/dashboards" # config | api ClustersFrom = "config" # using when ClustersFrom = "api" ClustersFromAPIs = [] [[NotifyChannels]] Label = "邮箱" # do not change Key Key = "email" [[NotifyChannels]] Label = "钉钉机器人" # do not change Key Key = "dingtalk" [[NotifyChannels]] Label = "企微机器人" # do not change Key Key = "wecom" [[NotifyChannels]] Label = "飞书机器人" # do not change Key Key = "feishu" [[ContactKeys]] Label = "Wecom Robot Token" # do not change Key Key = "wecom_robot_token" [[ContactKeys]] Label = "Dingtalk Robot Token" # do not change Key Key = "dingtalk_robot_token" [[ContactKeys]] Label = "Feishu Robot Token" # do not change Key Key = "feishu_robot_token" [Log] # log write dir Dir = "logs" # log level: DEBUG INFO WARNING ERROR Level = "DEBUG" # stdout, stderr, file Output = "stdout" # # rotate by time # KeepHours: 4 # # rotate by size # RotateNum = 3 # # unit: MB # RotateSize = 256 [HTTP] # http listening address Host = "0.0.0.0" # http listening port Port = 18000 # https cert file path CertFile = "" # https key file path KeyFile = "" # whether print access log PrintAccessLog = true # whether enable pprof PProf = false # http graceful shutdown timeout, unit: s ShutdownTimeout = 30 # max content length: 64M MaxContentLength = 67108864 # http server read timeout, unit: s ReadTimeout = 20 # http server write timeout, unit: s WriteTimeout = 40 # http server idle timeout, unit: s IdleTimeout = 120 [JWTAuth] # signing key SigningKey = "5b94a0fd640fe2765af826acfe42d151" # unit: min AccessExpired = 1500 # unit: min RefreshExpired = 10080 RedisKeyPrefix = "/jwt/" [BasicAuth] user001 = "ccc26da7b9aba533cbb263a36c07dcc5" [AnonymousAccess] PromQuerier = false AlertDetail = false [LDAP] Enable = false Host = "ldap.example.org" Port = 389 BaseDn = "dc=example,dc=org" # AD: manange@example.org BindUser = "cn=manager,dc=example,dc=org" BindPass = "*******" # openldap format e.g. (&(uid=%s)) # AD format e.g. (&(sAMAccountName=%s)) AuthFilter = "(&(uid=%s))" CoverAttributes = true TLS = false StartTLS = true # ldap user default roles DefaultRoles = ["Standard"] [LDAP.Attributes] Nickname = "cn" Phone = "mobile" Email = "mail" [OIDC] Enable = false RedirectURL = "http://n9e.com/callback" SsoAddr = "http://sso.example.org" ClientId = "" ClientSecret = "" CoverAttributes = true DefaultRoles = ["Standard"] [OIDC.Attributes] Nickname = "nickname" Phone = "phone_number" Email = "email" [Redis] # address, ip:port or ip1:port,ip2:port for cluster and sentinel(SentinelAddrs) Address = "127.0.0.1:6379" # Username = "" # Password = "" # DB = 0 # UseTLS = false # TLSMinVersion = "1.2" # standalone cluster sentinel RedisType = "standalone" # Mastername for sentinel type # MasterName = "mymaster" [DB] DSN="root:1234@tcp(127.0.0.1:3306)/n9e_v5?charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true" # enable debug mode or not Debug = false # mysql postgres DBType = "mysql" # unit: s MaxLifetime = 7200 # max open connections MaxOpenConns = 150 # max idle connections MaxIdleConns = 50 # table prefix TablePrefix = "" # enable auto migrate or not # EnableAutoMigrate = false [[Clusters]] # Prometheus cluster name Name = "Default" # Prometheus APIs base url Prom = "http://127.0.0.1:9090" # Basic auth username BasicAuthUser = "" # Basic auth password BasicAuthPass = "" # timeout settings, unit: ms Timeout = 30000 DialTimeout = 3000 MaxIdleConnsPerHost = 100 [Ibex] Address = "http://127.0.0.1:10090" # basic auth BasicAuthUser = "ibex" BasicAuthPass = "ibex" # unit: ms Timeout = 3000