Skip to content

Commit

Permalink
Merge pull request #75 from flashcatcloud/release
Browse files Browse the repository at this point in the history
v5.14.1
  • Loading branch information
kongfei605 authored Nov 5, 2022
2 parents 8ccf70a + 22f2219 commit 8b01e69
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sources:
maintainers:
- email: [email protected]
name: flashcatcloud
version: 0.1.5
version: 0.1.6
apiVersion: v1
appVersion: 5.14.0
appVersion: 5.14.1
icon: https://raw.githubusercontent.com/flashcatcloud/n9e-helm/master/n9e-icon.png
3 changes: 3 additions & 0 deletions templates/nserver/conf-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ data:
BusiGroupLabelKey = "busigroup"
EngineDelay = 60
DisableUsageReport = false
ReaderFrom = "config"
ForceUseServerTS = true
[Log]
Dir = "logs"
Level = "INFO"
Expand Down Expand Up @@ -56,6 +58,7 @@ data:
InsecureSkipVerify = true
Batch = 5
[Alerting]
Timeout=30000
TemplatesDir = "/app/etc/template"
NotifyConcurrency = 10
NotifyBuiltinChannels = ["email", "dingtalk", "wecom", "feishu", "mm"]
Expand Down
30 changes: 30 additions & 0 deletions templates/nwebapi/conf-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,36 @@ data:
Nickname = "nickname"
Phone = "phone_number"
Email = "email"
[CAS]
Enable = false
DiaplayName = "CAS登录"
SsoAddr = "https://cas.example.com/cas/"
RedirectURL = "http://127.0.0.1:18000/callback/cas"
CoverAttributes = false
DefaultRoles = ["Standard"]
[CAS.Attributes]
Nickname = "nickname"
Phone = "phone_number"
Email = "email"
[OAuth]
Enable = false
DisplayName = "OAuth2登录"
RedirectURL = "http://127.0.0.1:18000/callback/oauth"
SsoAddr = "https://sso.example.com/oauth2/authorize"
TokenAddr = "https://sso.example.com/oauth2/token"
UserInfoAddr = "https://api.example.com/api/v1/user/info"
ClientId = ""
ClientSecret = ""
CoverAttributes = true
DefaultRoles = ["Standard"]
UserinfoIsArray = false
UserinfoPrefix = "data"
Scopes = ["profile", "email", "phone"]
[OAuth.Attributes]
Username = "username"
Nickname = "nickname"
Phone = "phone_number"
Email = "email"
[Redis]
Address = "{{ template "nightingale.redis.addr" . }}"
Password = "{{ template "nightingale.redis.password" . }}"
Expand Down
8 changes: 5 additions & 3 deletions tpl/wecom.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
**级别状态**: {{if .IsRecovered}}<font color="info">S{{.Severity}} Recovered</font>{{else}}<font color="warning">S{{.Severity}} Triggered</font>{{end}}
**规则标题**: {{.RuleName}}{{if .RuleNote}}
**规则备注**: {{.RuleNote}}{{end}}
**监控指标**: {{.TagsJSON}}
{{if .IsRecovered}}**恢复时间**:{{timeformat .LastEvalTime}}{{else}}**触发时间**: {{timeformat .TriggerTime}}
**规则备注**: {{.RuleNote}}{{end}}{{if .TargetIdent}}
**监控对象**: {{.TargetIdent}}{{end}}
**监控指标**: {{.TagsJSON}}{{if not .IsRecovered}}
**触发时值**: {{.TriggerValue}}{{end}}
{{if .IsRecovered}}**恢复时间**: {{timeformat .LastEvalTime}}{{else}}**首次触发时间**: {{timeformat .FirstTriggerTime}}{{end}}
{{$time_duration := sub now.Unix .FirstTriggerTime }}{{if .IsRecovered}}{{$time_duration = sub .LastEvalTime .FirstTriggerTime }}{{end}}**持续时长**: {{humanizeDurationInterface $time_duration}}
**发送时间**: {{timestamp}}
4 changes: 2 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ nwebapi:
automountServiceAccountToken: false
image:
repository: flashcatcloud/nightingale
tag: 5.14.0
tag: 5.14.1
nodeSelector: {}
tolerations: []
affinity: {}
Expand All @@ -234,7 +234,7 @@ nserver:
automountServiceAccountToken: false
image:
repository: flashcatcloud/nightingale
tag: 5.14.0
tag: 5.14.1
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down

0 comments on commit 8b01e69

Please sign in to comment.