mirror of
https://github.com/ClusterCockpit/cc-metric-store.git
synced 2025-07-26 14:46:12 +02:00
feat: HealthCheck endpoint for nodes
This commit is contained in:
6
endpoint-test-scripts/test_ccms_api.sh
Executable file
6
endpoint-test-scripts/test_ccms_api.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
JWT="eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
|
||||
|
||||
# If the collector and store and nats-server have been running for at least 60 seconds on the same host, you may run:
|
||||
curl -X 'GET' 'http://localhost:8081/api/query/' -H "Authorization: Bearer $JWT" -d "{ \"cluster\": \"alex\", \"from\": 1720879275, \"to\": 1720964715, \"queries\": [{\"metric\": \"cpu_load\",\"host\": \"a0124\"}] }"
|
||||
|
||||
# ...
|
Reference in New Issue
Block a user