Is there any query analysis dashboard?
# community-help
a
Is there any query analysis dashboard?
j
Could you elaborate on what information you're looking for in a query analysis dashboard?
a
ok, info like, individual query time, latency. query based cpu uses, memory uses, memory response time. Query or memory history.
j
That's available in Typesense Cloud. You can also get the latest snapshot of metrics from the
/stats.json
and
/metrics.json
endpoints
a
those are endpoints, can i get UI based analysis dashboard?
f
If you use Typesense cloud, they're available in the "Monitoring" tab of your cluster
a
only i getting 3 nodes status in
Monitoring
tab, at the bottom there is Metrics. There are not showing the which query/searching uses cpu.
f
Which query/searching uses cpu
Could you elaborate on that?
a
things like grafana Note: image from google.
f
You can build those out using the info from the endpoints Jason mentioned above
a
is there any api for upgrade or downgrade clusters config
f
a
thanks @Fanis Tharropoulos
🙌 1
how to get X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY ?
f
a
get it
thanks
i wanted to change the cluster config - post api not working
Copy code
curl -X POST --location "<https://cloud.typesense.org/api/v1/clusters/evlznpkxa41tsd/configuration-changes>" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY: <I give that key>" \
    -d '{
          "new_memory": "1_gb",
          "new_vcpu": "2_vcpus_2_hr_burst_per_day",
          "new_typesense_server_version: "0.24.1",
          "new_high_availability: "yes",
          "perform_change_at": 1787923647,
          "notification_email_addresses": ["arnob@10minuteschool.com"]
        }'
--- response:
Copy code
{
  "success": false,
  "message": "Resource Not Found"
}
Note: i changed the cluster id.
f
It's a PATCH, not a POST request
a
cluster attributes only for
Copy code
auto_upgrade_capacity
name
i can't change the cpu or memory
a
i already share/tried that but not working 😞
f
Does the cluster exist? Try querying it with a GET request
a
yes
but i change the cluster id
for security
f
Do you change it on the message here or on the API call itself?
a
i just change the cluster id and
X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY
solved that.
f
What was the issue?
a
change the ts server version: from:
Copy code
"new_typesense_server_version": "0.26.0",
to:
Copy code
"new_typesense_server_version": "26.0",
f
We may need to update our error handling based on parameters here, thanks for reporting this
a
welcome