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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58ad84534f978d568233c369b4c1b6c59f83b34c70f7d110183981443ca38d4c
|
|
| MD5 |
99f8bb6248639c8624f9d088fc1bf607
|
|
| BLAKE2b-256 |
0f2780f3ad85ddb7ac55e29378c795b0f76ecfd4a49915f0097dc3859092ecc4
|
Provenance
The following attestation bundles were made for proactiveguard-0.2.0.tar.gz:
Publisher:
publish.yml on Prakhar998/proactiveguard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
proactiveguard-0.2.0.tar.gz -
Subject digest:
58ad84534f978d568233c369b4c1b6c59f83b34c70f7d110183981443ca38d4c - Sigstore transparency entry: 1008348109
- Sigstore integration time:
-
Permalink:
Prakhar998/proactiveguard@16768f8060a87c01056c340f7eafcc6eb89a37ee -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Prakhar998
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@16768f8060a87c01056c340f7eafcc6eb89a37ee -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e441c8bf7dc8d9924b189fc09507075dd0d486ce54838ed3914496eb3462dd2
|
|
| MD5 |
f48733ceac0b928ec23d520fffe4b7e0
|
|
| BLAKE2b-256 |
e0417c4553188240b064bbd328a5ae186d21830c9b3c473a41b8043d5b4673f3
|
Provenance
The following attestation bundles were made for proactiveguard-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on Prakhar998/proactiveguard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
proactiveguard-0.2.0-py3-none-any.whl -
Subject digest:
5e441c8bf7dc8d9924b189fc09507075dd0d486ce54838ed3914496eb3462dd2 - Sigstore transparency entry: 1008348110
- Sigstore integration time:
-
Permalink:
Prakhar998/proactiveguard@16768f8060a87c01056c340f7eafcc6eb89a37ee -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Prakhar998
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@16768f8060a87c01056c340f7eafcc6eb89a37ee -
Trigger Event:
push
-
Statement type: