Skip to content

Commit

Permalink
add new ssl_cert monitoring metric days_remaining(#999)
Browse files Browse the repository at this point in the history
Signed-off-by: baixing99 <73473087+baixing99@users.noreply.github.com>
  • Loading branch information
baixing99 authored May 31, 2023
1 parent b9a7c84 commit 9260074
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions manager/src/main/resources/define/app-ssl_cert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ metrics:
- field: end_timestamp
type: 0
unit: ms
- field: days_remaining
type: 0
unit: d
aliasFields:
- subject
- expired
- start_time
- start_timestamp
- end_time
- start_timestamp
- end_timestamp
- days_remaining
calculates:
- days_remaining=math.floor((end_timestamp-now())/86400000) #下取整
# the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk
# 用于监控的协议, eg: sql, ssh, http, telnet, wmi, snmp, sdk
protocol: ssl_cert
Expand Down

0 comments on commit 9260074

Please sign in to comment.