Metrics
Query the collected metrics.
List collectors
curl http://127.0.0.1:8080/api/v3/metrics \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-X GETfrom core_client import Client
client = Client(
base_url="http://127.0.0.1:8080"
)
client.login()
core_metrics_collection_list = client.v3_metrics_get()
print(core_metrics_collection_list)import (
"fmt"
"github.com/datarhei/core-client-go/v16"
)
client, _ := coreclient.New(coreclient.Config{
Address: "https://127.0.0.1:8080",
})
metrics, err := client.MetricsList()
for _, m := range metrics {
fmt.Printf("%+v\n", m)
}Query metrics
Available collectors
Last updated
Was this helpful?
