12 lines
380 B
Python
12 lines
380 B
Python
import requests
|
|
import json
|
|
import urllib3
|
|
urllib3.disable_warnings()
|
|
|
|
headers = {"Authorization": "Bearer glsa_71Y8I8DSZt3nXUNFzygnmBcEF4FUmWdw_1f03e67c"}
|
|
|
|
for ep in ["stats", "admin/stats", "search", "datasources", "alerts"]:
|
|
r = requests.get(f"https://grafana.snarfnet.net/api/{ep}", headers=headers, verify=False)
|
|
print(f"{ep}: status={r.status_code}", r.text[:150])
|
|
|