Hi channel. I’m facing this issue for a dashboard ...
# general
p
Hi channel. I’m facing this issue for a dashboard that our team has built:
API responded with 400 - json: cannot unmarshal number into Go struct field CompositeQuery.compositeQuery.queryType of type v3.QueryType
s
What version are you using? Are you migrating from some existing version?
p
We used this script to generate a dashboard:
Copy code
for node in $(kubectl get nodes -o name | sed -e "s/^node\///");
do
  curl -sL <https://github.com/SigNoz/benchmark/raw/main/dashboards/hostmetrics/hostmetrics-import.sh> \
    | HOSTNAME="$node" DASHBOARD_TITLE="HostMetrics Dashboard for $node" bash
done
This generates the dashboard JSON.
It seems like the panelType property in the JSON has incorrect values.
Can you please share the panelType property enum? Thanks in advance
p
Hi @Pankaj Lagu, can you import the following dashboard instead? https://github.com/SigNoz/dashboards/blob/main/hostmetrics/hostmetrics-k8s.json
Do let us know if that works for you.
Meanwhile, let me work on updating the docs for the same.
p
Hi @Prashant Shahi. It worked. Thank you.
u
Hi @Prashant Shahi, I'm facing same issue, but our team use VM only.
p
@凌鉅泰 If you are not using K8s but only VM. You will need to import the following dashboard: https://github.com/SigNoz/dashboards/blob/main/hostmetrics/hostmetrics-with-variable.json
u
Hi @Prashant Shahi, It worked, Thank you.