feat(cert-checker): add Kubernetes resources for certificate checking functionality
- Implemented a new module for cert-checker with Kubernetes resources including ServiceAccount, Role, RoleBinding, ConfigMap, and CronJob. - Added Python script to check certificate expiry and restart deployments if necessary. - Configured environment variables for deployment name, namespace, and service details. - Included requirements for the Python environment. feat(devolo-exporter): introduce Devolo exporter for Prometheus metrics - Created a new module for Devolo exporter with Kubernetes resources including ServiceAccount, ConfigMap, Deployment, and Service. - Developed Python scripts to scrape metrics from Devolo devices and expose them to Prometheus. - Configured environment variables for Devolo device IP, model, and ports. - Added requirements for the Python environment.
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import websocket
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: python wsclient.py ws://localhost:9222/devtools/page/XYZ")
|
||||
sys.exit(1)
|
||||
|
||||
url = sys.argv[1]
|
||||
ws = websocket.WebSocket()
|
||||
ws.connect(url)
|
||||
|
||||
print(f"Connected to {url}")
|
||||
try:
|
||||
while True:
|
||||
msg = input("> ")
|
||||
if msg.lower() in {"exit", "quit"}:
|
||||
break
|
||||
ws.send(msg)
|
||||
print(ws.recv())
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
ws.close()
|
||||
Reference in New Issue
Block a user