#6835·keep

[ Provider]: dephealth — service dependency topology from app_dependency_* metrics

Author: BigKAACreated Sep 22, 2026Updated Sep 22, 2026

Describe the provider you want to add

dephealth is a family of open-source instrumentation SDKs (Go, Python, Java, C#) that add dependency health checks to applications and export the results as Prometheus metrics:

  • app_dependency_health — gauge (1 = available, 0 = unavailable) per dependency endpoint, labels: name (reporting service), group (logical group / team), dependency, type (http, grpc, tcp, postgres, mysql, redis, amqp, kafka, ldap), host, port, critical
  • app_dependency_latency_seconds (histogram), app_dependency_status (enum gauge), app_dependency_status_detail (info gauge) — check latency and result categories

Full metric contract: https://github.com/BigKAA/topologymetrics/blob/master/spec/metric-contract.md

The provider I'd like to contribute is a topology provider (subclass of BaseTopologyProvider): it queries any Prometheus/VictoriaMetrics-compatible /api/v1/query endpoint with a configurable PromQL (default: group by (name, namespace, group, dependency, type, critical) (app_dependency_health)) and maps the resulting label groups to Keep topology:

  • service ← name, namespace ← namespace, tags ← group / critical
  • dependency edge name → dependency with protocol ← type
  • applications ← group (via application_relations)

Describe your use case

We deploy Keep on our customers' projects. For microservice topology we currently use the topologymetrics stack: dephealth SDKs instrument each service with dependency health checks, dephealth-ui visualizes the graph, and vmalert/Alertmanager rules on the same metrics produce dependency alerts (down / degraded / latency / flapping). Today topology and alerting live in two separate tools per project.

Integrating this into Keep gives a single pane: topology built directly from app_dependency_* metrics, alerts generated from those metrics correlated to topology nodes by service, application-level incidents via TopologyProcessor, and context on cascading failures. And since every instrumented service reports its real dependencies, topology stays in sync with reality without CMDB-style manual maintenance.

We run Keep self-hosted alongside VictoriaMetrics + Alertmanager (alerts already flow in through the prometheus provider webhook) and validated the topology mapping on a lab stand — screenshot below (Keep /topology built from app_dependency_health: 2 applications, 17 services, 20 edges). Since Keep is deployed per customer project, contributing the provider upstream is strongly preferred over maintaining private forks.

Are you already using Keep?

Yes — self-hosted (docker compose).

Additional context

  • Happy to submit the PR myself (AI-assisted per repo policy; verified with unit tests against a real metrics snapshot and a firing/resolved lab scenario).
  • On naming: the SDK ecosystem is called topologymetrics, the dashboards product is dephealth — happy to rename per maintainers' preference.

Keep topology built from app_dependency_health