Skip to main content

Predictive failure detection for distributed consensus systems (etcd, Raft, CockroachDB)

Project description

ProactiveGuard

Predictive failure detection for distributed consensus systems (etcd, Raft, CockroachDB).

Install

pip install proactiveguard

Quick Start

from proactiveguard import ProactiveGuard

pg = ProactiveGuard(api_key="pg-...")

# Stream metrics from your cluster nodes
pg.observe("etcd-0", {
    "heartbeat_latency_ms": 22.5,
    "messages_sent": 12,
    "messages_received": 11,
    "messages_dropped": 0,
    "missed_heartbeats": 0,
    "response_rate": 1.0,
    "term": 4,
    "commit_index": 1042,
    "is_leader": False,
})

result = pg.status("etcd-0")
if result and result.is_pre_failure:
    print(f"Warning: {result.status}{result.time_to_failure:.0f}s to failure")

# Batch prediction
labels = pg.predict(X)           # X: (n, 50, 32) numpy array
probs  = pg.predict_proba(X)
labels, ttf, conf = pg.predict_with_ttf(X)

Authentication

Pass your API key directly or via environment variable:

export PROACTIVEGUARD_API_KEY="pg-..."
pg = ProactiveGuard()  # picks up from env

Links

Copyright (c) 2025 Maya Plus. All rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proactiveguard-0.2.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proactiveguard-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file proactiveguard-0.2.0.tar.gz.

File metadata

  • Download URL: proactiveguard-0.2.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for proactiveguard-0.2.0.tar.gz
Algorithm Hash digest
SHA256 58ad84534f978d568233c369b4c1b6c59f83b34c70f7d110183981443ca38d4c
MD5 99f8bb6248639c8624f9d088fc1bf607
BLAKE2b-256 0f2780f3ad85ddb7ac55e29378c795b0f76ecfd4a49915f0097dc3859092ecc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for proactiveguard-0.2.0.tar.gz:

Publisher: publish.yml on Prakhar998/proactiveguard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file proactiveguard-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: proactiveguard-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for proactiveguard-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e441c8bf7dc8d9924b189fc09507075dd0d486ce54838ed3914496eb3462dd2
MD5 f48733ceac0b928ec23d520fffe4b7e0
BLAKE2b-256 e0417c4553188240b064bbd328a5ae186d21830c9b3c473a41b8043d5b4673f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for proactiveguard-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Prakhar998/proactiveguard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page