Registry / observability / pylertalertmanager

pylertalertmanager

JSON →
library0.1.1pypypi✓ verified 85d ago

Library to ease interaction with Alert Manager API. Current version 0.1.1, early development stage with occasional releases.

pip install pylertalertmanager
INSTALL
IMPORT
SIG · PYLERTALERTMANAGER
P
pylertalertmanager
observabilitypythonv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AlertManager
✓ from alertmanager import AlertManager
✗ from pylertalertmanager import AlertManager
Alert
✓ from alertmanager import Alert
Silence
✓ from alertmanager import Silence

Connect to AlertManager and fetch alerts.

from pylertalertmanager import AlertManager # Assuming AM_URL and API_KEY env vars are set am = AlertManager(url='http://alertmanager:9093') # Or with API key: AlertManager(url='...', api_key='...') alerts = am.get_alerts() print(alerts)
Debug
Known issues
gotchaThe API may be unstable due to early development (v0.1.1). Expect breaking changes in methods and parameters.
fix
Pin to exact version and test upgrades.
affects: >=0.1.0,<1.0.0
gotchaThe library uses Python 3.4+ but may not support newer AlertManager API versions.
fix
Check compatibility with your AlertManager version.
affects: all
deprecatedNo deprecation notices as library is very early.
affects: N/A
Upgrade
Version history
0.1.1latest on PyPI · released Nov 15, 2018
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
2
Resources
pylertalertmanager — pip install pylertalertmanager · libregistry