openvibers/openvibe.host Commits

alerts: ticket when an AI provider balance is under $2 (#299)

OP OpenVibers committed 7 days ago · 3148832243 · 1 file, +9 −0

OpenVibe.AI reads each provider's balance hourly and exposes
ai_provider_balance_usd{provider}; this rule turns a reading under $2 into
one operator ticket so the owner can top up before every AI feature fails.

Changes

ddiff --git a/deploy/prometheus/openvibe-rules.yml b/deploy/prometheus/openvibe-rules.yml
iindex c1d4494..1b61a26 100644
---- a/deploy/prometheus/openvibe-rules.yml
++++ b/deploy/prometheus/openvibe-rules.yml
@@@ -27,6 +27,15 @@ groups:
labels: { severity: page }
annotations:
summary: "The readiness check has not completed a run for more than 20 minutes (openvibe-readyhealth.timer; check systemctl status openvibe-readyhealth.service)"
++ # OpenVibe.AI's hourly balance probe (AI server/providers/balance.js; DeepSeek). Below $2 the owner must
++ # top the provider up before every AI feature on the network starts failing. A ticket (bell), not a page:
++ # the account still answers until it reaches zero.
++ - alert: OpenVibeAiProviderBalanceLow
++ expr: ai_provider_balance_usd < 2
++ for: 10m
++ labels: { severity: ticket }
++ annotations:
++ summary: "OpenVibe.AI provider {{ $labels.provider }} balance is ${{ $value | humanize }} (below $2): top it up before AI stops answering"
- alert: HighErrorRate
expr: |
sum by (service) (rate(http_requests_total{status=~"5.."}[10m]))