/etc/prometheus/alert.rules > api
|
alert: cash_credit_failed
expr: cash_credit
annotations:
ResolvedSummary: Not available
Summary: cash_credit failed with device {{ $labels.device }}, error {{ $labels.error
}}
|
alert: cash_debit_failed
expr: cash_debit
annotations:
ResolvedSummary: Not available
Summary: cash_debit failed with device {{ $labels.device }}, error {{ $labels.error
}}
|
|
|
alert: delete_command_failed
expr: delete_command
annotations:
ResolvedSummary: Not available
Summary: delete_command failed with device {{ $labels.device }}, command {{ $labels.command
}}, error {{ $labels.error }}
|
|
|
|
alert: duplicate_sim_failed
expr: duplicate_sim
annotations:
ResolvedSummary: Not available
Summary: duplicate_sim failed with transaction {{ $labels.transaction }}, error
{{ $labels.error }}
|
alert: feedback_detail_failed
expr: feedback_detail
annotations:
ResolvedSummary: Not available
Summary: feedback_detail failed with transaction {{ $labels.transaction }}, error
{{ $labels.error }}
|
|
alert: get_all_content_failed
expr: get_all_content
annotations:
ResolvedSummary: Not available
Summary: get_all_content failed with transaction {{ $labels.transaction }}, error
{{ $labels.error }}
|
|
alert: inventory_update_failed
expr: inventory_update
annotations:
ResolvedSummary: Not available
Summary: inventory_update failed with transaction {{ $labels.transaction }}, error
{{ $labels.error }}
|
alert: new_sim_sale_failed
expr: new_sim_sale
annotations:
ResolvedSummary: Not available
Summary: new_sim_sale failed with transaction {{ $labels.transaction }}, error {{
$labels.error }}
|
alert: portal_login_failed
expr: portal_login
annotations:
ResolvedSummary: Not available
Summary: portal_login failed with transaction {{ $labels.transaction }}, username
{{ $labels.username }}, error {{ $labels.error }}
|
alert: post_trip_failed
expr: post_trip
annotations:
ResolvedSummary: Not available
Summary: post_trip failed with transaction {{ $labels.transaction }}, username {{
$labels.username }}, TripCode {{ $labels.trip_code }}, error {{ $labels.error
}}
|
alert: top_up_failed
expr: top_up
annotations:
ResolvedSummary: Not available
Summary: top_up failed with transaction {{ $labels.transaction }}, error {{ $labels.error
}}
|
alert: update_command_failed
expr: update_command
annotations:
ResolvedSummary: Not available
Summary: update_command failed with device {{ $labels.device }}, command {{ $labels.command
}}, status {{ $labels.status }}, error {{ $labels.error }}
|
alert: validate_trip_failed
expr: validate_trip
annotations:
ResolvedSummary: Not available
Summary: validate_trip failed with transaction {{ $labels.transaction }}, username
{{ $labels.username }}, TripCode {{ $labels.trip_code }}, error {{ $labels.error
}}
|
/etc/prometheus/alert.rules > health
|
|
|
|
/etc/prometheus/alert.rules > inventory
|
alert: CashAcceptorFull
expr: (cash_acceptor_count
> 400)
for: 5m
annotations:
ResolvedSummary: Cash acceptor has been emptied at {{ $labels.device }}
Summary: Cash acceptor has {{ $value }} notes and is about to be reach full capacity
at {{ $labels.device }}
|
alert: SimDispenser
expr: (sim_count < 10)
for: 5m
annotations:
ResolvedSummary: Sim count is now {{ $value }} in device at {{ $labels.device }}
Summary: Sim count is only {{ $value }} in device at {{ $labels.device }}
|
/etc/prometheus/alert.rules > system
|
alert: service_down
expr: up == 0
for: 1m
annotations:
ResolvedSummary: '{{ $labels.instance }} of job {{ $labels.job }} is up now'
Summary: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more
than 1 minute.'
Labels |
State |
Active Since |
Value |
alertname="service_down"
instance="alert_notification_sender:9076"
job="alert_notification_sender"
|
firing |
2024-09-06 07:43:26.762165139 +0000 UTC |
0 |
Annotations |
- ResolvedSummary
- alert_notification_sender:9076 of job alert_notification_sender is up now
- Summary
- alert_notification_sender:9076 of job alert_notification_sender has been down for more than 1 minute.
|
alertname="service_down"
instance="history_maker:9075"
job="history_maker"
|
firing |
2024-09-06 07:43:26.762165139 +0000 UTC |
0 |
Annotations |
- ResolvedSummary
- history_maker:9075 of job history_maker is up now
- Summary
- history_maker:9075 of job history_maker has been down for more than 1 minute.
|
alertname="service_down"
instance="inventory-service:9065"
job="inventory"
|
firing |
2024-09-06 07:43:26.762165139 +0000 UTC |
0 |
Annotations |
- ResolvedSummary
- inventory-service:9065 of job inventory is up now
- Summary
- inventory-service:9065 of job inventory has been down for more than 1 minute.
|
alertname="service_down"
instance="transaction-service:9062"
job="transaction"
|
firing |
2024-09-06 07:43:26.762165139 +0000 UTC |
0 |
Annotations |
- ResolvedSummary
- transaction-service:9062 of job transaction is up now
- Summary
- transaction-service:9062 of job transaction has been down for more than 1 minute.
|
alertname="service_down"
instance="vendor-service:9068"
job="vendor"
|
firing |
2024-09-06 07:43:26.762165139 +0000 UTC |
0 |
Annotations |
- ResolvedSummary
- vendor-service:9068 of job vendor is up now
- Summary
- vendor-service:9068 of job vendor has been down for more than 1 minute.
|
|
|
|