tokenbridge-monitor/prometheus/templates/slack.tmpl

177 lines
6.5 KiB
Cheetah

{{ define "slack.default.username" }}AMB monitor{{ end }}
{{ define "slack.stuck_message.title" -}}
Stuck AMB message confirmation
{{- end }}
{{ define "slack.stuck_message.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Collected confirmations:* {{ $count := "" }}{{ range .Alerts }}{{ $count = .Labels.count }}{{ end }}{{ $count }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.unknown_confirmation.title" -}}
Validator signed for unknown AMB message
{{- end }}
{{ define "slack.unknown_confirmation.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Validator:* {{ .CommonLabels.signer }}
*Message hash:* {{ .CommonLabels.msg_hash }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.unknown_execution.title" -}}
Bridge executed unknown AMB message
{{- end }}
{{ define "slack.unknown_execution.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Message id:* {{ .CommonLabels.message_id }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.failed_execution.title" -}}
Failed AMB message execution
{{- end }}
{{ define "slack.failed_execution.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Sender:* {{ .CommonLabels.sender }}
*Executor:* {{ .CommonLabels.executor }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.stuck_information_request.title" -}}
Stuck AMB information request
{{- end }}
{{ define "slack.stuck_information_request.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Collected confirmations:* {{ $count := "" }}{{ range .Alerts }}{{ $count = .Labels.count }}{{ end }}{{ $count }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.unknown_information_signature.title" -}}
Validator signed for unknown AMB information request
{{- end }}
{{ define "slack.unknown_information_signature.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Validator:* {{ .CommonLabels.signer }}
*Message ID:* {{ .CommonLabels.message_id }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.unknown_information_execution.title" -}}
Bridge executed unknown AMB information request
{{- end }}
{{ define "slack.unknown_information_execution.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Message id:* {{ .CommonLabels.message_id }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.failed_information_request.title" -}}
Failed AMB information request execution
{{- end }}
{{ define "slack.failed_information_request.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Sender:* {{ .CommonLabels.sender }}
*Executor:* {{ .CommonLabels.executor }}
*Status:* {{ .CommonLabels.status }}
*Callback Status:* {{ .CommonLabels.callback_status }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.different_information_signatures.title" -}}
Validators signed different AMB information request results
{{- end }}
{{ define "slack.different_information_signatures.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Message id:* {{ .CommonLabels.message_id }}
*Distinct information signatures:* {{ $count := "" }}{{ range .Alerts }}{{ $count = .Labels.count }}{{ end }}{{ $count }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.stuck_erc_to_native_message.title" -}}
Stuck ERC_TO_NATIVE message confirmation
{{- end }}
{{ define "slack.stuck_erc_to_native_message.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Collected confirmations:* {{ $count := "" }}{{ range .Alerts }}{{ $count = .Labels.count }}{{ end }}{{ $count }}
*Sender:* {{ .CommonLabels.sender }}
*Receiver:* {{ .CommonLabels.receiver }}
*Value:* {{ .CommonLabels.value }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.unknown_erc_to_native_confirmation.title" -}}
Validator signed for unknown ERC_TO_NATIVE message
{{- end }}
{{ define "slack.unknown_erc_to_native_confirmation.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Validator:* {{ .CommonLabels.signer }}
*Message hash:* {{ .CommonLabels.msg_hash }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.unknown_erc_to_native_execution.title" -}}
Bridge executed unknown ERC_TO_NATIVE message
{{- end }}
{{ define "slack.unknown_erc_to_native_execution.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Block number:* {{ .CommonLabels.block_number }}
*Age:* {{ .CommonAnnotations.age }}
*Message id:* {{ .CommonLabels.message_id }}
*Tx:* {{ template "explorer.tx.link" .CommonLabels }}
{{- end }}
{{ define "slack.stuck_contract.title" -}}
Monitoring of contract is stuck
{{- end }}
{{ define "slack.stuck_contract.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Address:* {{ .CommonLabels.address }}
{{- end }}
{{ define "slack.validator_offline.title" -}}
Bridge validator stopped producing successful confirmations
{{- end }}
{{ define "slack.validator_offline.text" -}}
*Bridge:* {{ .CommonLabels.bridge_id }}
*Chain ID:* {{ .CommonLabels.chain_id }}
*Address:* {{ .CommonLabels.address }}
*Time since last recorded action:* {{ .CommonAnnotations.age }}
*Validator:* {{ template "explorer.address.link" .CommonLabels }}
{{- end }}