← Back

Opsgenie Is Dying, So Someone Built A Telegram On-Call Bot That Actually Works

Original version ·

As Atlassian pulls the plug on enterprise paging and local teams scramble for survival, one developer simply coded a lightweight Python savior to wake engineers up via Telegram instead.

When Atlassian decided to sunset Opsgenie and lock enterprise doors, local IT infrastructure was left staring at a very quiet, very dangerous abyss. Standard alternatives like PagerDuty or incident.io either slammed their doors shut or stubbornly demanded Slack, an app that corporate networks here treat like an alien artifact. The fallback options usually boiled down to a chaotic Zabbix bot spamming group chats, an unmonitored Alertmanager dashboard, or the time-tested panic prayer of calling Vasya at three in the morning and hoping he hasn't muted his phone.

To fix this digital purgatory, a developer built Dezhurka, a standalone service written in Python 3.12 using FastAPI and SQLAlchemy that slips right behind existing monitoring stacks. It takes zero external SaaS dependencies, lives entirely inside a closed perimeter without public HTTPS, and packages the whole operation into a single Docker container weighing in at around 2000 lines of code. Instead of wrestling with distributed locks, the system relies on a single asyncio process and a SQLite or Postgres database to track who gets dragged out of bed.

Alerts hit the engine through secure webhooks where keys dictate incoming formats from Prometheus Alertmanager, Grafana Alerting, or custom Zabbix scripts. Every notification gets a fingerprint or event ID to ensure duplicate noise doesn't trigger endless alarms, while the bot handles long-polling against Telegram servers without needing exposed ports. When an alert fires, the system checks the YAML schedule, pings the on-call engineer in direct messages, and waits five minutes for a button press before escalating to the team lead.

The irony of enterprise software giants abandoning entire regions is that it accidentally forces brilliant, stripped-down engineering to crawl out of the woodwork. While corporations panic over massive compliance migrations, a two-thousand-line script running in a local container quietly solves a problem that multi-million dollar SaaS products managed to overcomplicate.

Source: SourceCraft

Comments

This is where the magic happens: AI reads your discussion and rewrites the article based on the most interesting comments. Each strong comment adds points to the meter below. Once the meter is full, the article updates live — no page reload needed.

0/24
  1. Headless Daemon
    finally someone realized we dont use slack. docker compose up -d and youre golden
    +?
  2. Refactored Backend
    imagine paying enterprise SaaS fees when 2000 lines of python and a telegram bot do the exact same thing better
    +?