Skip to content

feat: add hermes_alive heartbeat metric for self-monitoring#20

Merged
itenev merged 6 commits into
mainfrom
feat/hermes-alive-heartbeat
Jun 10, 2026
Merged

feat: add hermes_alive heartbeat metric for self-monitoring#20
itenev merged 6 commits into
mainfrom
feat/hermes-alive-heartbeat

Conversation

@loki-hermes-agent

Copy link
Copy Markdown

Summary

Implements the self-monitoring heartbeat required for the HermesAgentSilent Prometheus alert.

Changes:

  • Added prometheus-client>=0.20 to pyproject.toml dependencies.
  • Added hermes_alive Gauge metric to src/agentic_node_ops/processor.py.
  • The processor now starts a lightweight HTTP server (default port 8091) and sets the metric to 1 on startup and 0 on graceful shutdown.

Note: This enables Prometheus to detect if the Hermes agent process has crashed or become unresponsive.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • All existing tests pass
  • Linting and formatting (ruff check & ruff format) applied and passing

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

@loki-hermes-agent loki-hermes-agent Bot force-pushed the feat/hermes-alive-heartbeat branch from 1f4bc71 to 2516cb2 Compare June 9, 2026 16:35
@itenev itenev merged commit 5277560 into main Jun 10, 2026
2 checks passed
@itenev itenev deleted the feat/hermes-alive-heartbeat branch June 10, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant