• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

galthran-wq / agent-monitoring-service / 22104509413
88%

Build:
DEFAULT BRANCH: master
Ran 17 Feb 2026 03:28PM UTC
Jobs 1
Files 19
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Feb 2026 03:28PM UTC coverage: 88.987% (-1.9%) from 90.909%
22104509413

push

github

web-flow
feat: implement agent monitoring service (#1)

* feat: implement agent monitoring service

Adds automated infrastructure monitoring that periodically pulls logs from
Loki and metrics from Prometheus, analyzes them via a cheap LLM (Gemini Flash
via OpenRouter), and pushes concise HTML summaries to Telegram.

Components:
- Sources: LokiSource (error/warning log queries), PrometheusSource (up, rates, latency)
- Analyzer: LLM-based analysis with token budget management and statistical fallback
- Exporter: Telegram with edit-previous-message pattern to avoid spam
- Monitor: Async orchestration loop with configurable interval
- API: GET /report endpoint for last generated report

All settings via AGENT_MONITORING_ prefixed env vars. 29 tests with full coverage
of sources, analyzer, exporter, monitor, and API endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: resolve mypy strict mode errors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: update README for agent monitoring service

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix Telegram export and monitor settings

* fix: sort imports in telegram exporter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>

317 of 358 new or added lines in 15 files covered. (88.55%)

1 existing line in 1 file now uncovered.

404 of 454 relevant lines covered (88.99%)

0.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.83
src/analyzers/llm_analyzer.py
2
95.0
-5.0% src/config.py
2
95.74
src/sources/prometheus.py
6
40.0
src/exporters/__init__.py
6
88.46
src/services/monitor.py
6
45.45
src/sources/__init__.py
9
87.32
src/exporters/telegram.py
9
65.12
-14.19% src/main.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
65.12
-14.19% src/main.py
Jobs
ID Job ID Ran Files Coverage
1 22104509413.1 17 Feb 2026 03:28PM UTC 19
88.99
GitHub Action Run
Source Files on build 22104509413
  • Tree
  • List 19
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22104509413
  • 51b3a3eb on github
  • Prev Build on master (#22103403178)
  • Next Build on master (#22143174989)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc