Im trying to import the Hostmetrics Dashboard from...
# support
g
Im trying to import the Hostmetrics Dashboard from Dashboard Github Repo, in
v0.39.0
but looks like theres a breaking changes between the example and this version.
The error output:
Copy code
2024-02-14T17:03:16.530Z	ERROR	app/http_handler.go:3153	cannot parse the request body: json: cannot unmarshal number into Go struct field CompositeQuery.compositeQuery.queryType of type v3.QueryType
2024-02-14T17:03:16.530651115Z <http://go.signoz.io/signoz/pkg/query-service/app.(*APIHandler).QueryRangeV3|go.signoz.io/signoz/pkg/query-service/app.(*APIHandler).QueryRangeV3>
2024-02-14T17:03:16.530653829Z 	/home/runner/work/signoz/signoz/pkg/query-service/app/http_handler.go:3153
2024-02-14T17:03:16.530656001Z <http://go.signoz.io/signoz/pkg/query-service/app.(*APIHandler).RegisterQueryRangeV3Routes.(*AuthMiddleware).ViewAccess.func7|go.signoz.io/signoz/pkg/query-service/app.(*APIHandler).RegisterQueryRangeV3Routes.(*AuthMiddleware).ViewAccess.func7>
2024-02-14T17:03:16.530658162Z 	/home/runner/work/signoz/signoz/pkg/query-service/app/auth.go:50
2024-02-14T17:03:16.530660290Z net/http.HandlerFunc.ServeHTTP
2024-02-14T17:03:16.530662416Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2136
2024-02-14T17:03:16.530664880Z <http://go.signoz.io/signoz/ee/query-service/app.loggingMiddleware.func1|go.signoz.io/signoz/ee/query-service/app.loggingMiddleware.func1>
2024-02-14T17:03:16.530667053Z 	/home/runner/work/signoz/signoz/ee/query-service/app/server.go:357
2024-02-14T17:03:16.530669201Z net/http.HandlerFunc.ServeHTTP
2024-02-14T17:03:16.530671642Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2136
2024-02-14T17:03:16.530673827Z <http://go.signoz.io/signoz/ee/query-service/app.(*Server).analyticsMiddleware-fm.(*Server).analyticsMiddleware.func1|go.signoz.io/signoz/ee/query-service/app.(*Server).analyticsMiddleware-fm.(*Server).analyticsMiddleware.func1>
2024-02-14T17:03:16.530692306Z 	/home/runner/work/signoz/signoz/ee/query-service/app/server.go:475
2024-02-14T17:03:16.530695196Z net/http.HandlerFunc.ServeHTTP
2024-02-14T17:03:16.530697267Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2136
2024-02-14T17:03:16.530699506Z <http://go.signoz.io/signoz/ee/query-service/app.setTimeoutMiddleware.func1|go.signoz.io/signoz/ee/query-service/app.setTimeoutMiddleware.func1>
2024-02-14T17:03:16.530701741Z 	/home/runner/work/signoz/signoz/ee/query-service/app/server.go:506
2024-02-14T17:03:16.530703846Z net/http.HandlerFunc.ServeHTTP
2024-02-14T17:03:16.530705854Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2136
2024-02-14T17:03:16.530707892Z <http://github.com/gorilla/mux.(*Router).ServeHTTP|github.com/gorilla/mux.(*Router).ServeHTTP>
2024-02-14T17:03:16.530709961Z 	/home/runner/go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210
2024-02-14T17:03:16.530712078Z <http://go.signoz.io/signoz/ee/query-service/app.(*Server).createPublicServer.(*Cors).Handler.func2|go.signoz.io/signoz/ee/query-service/app.(*Server).createPublicServer.(*Cors).Handler.func2>
2024-02-14T17:03:16.530714216Z 	/home/runner/go/pkg/mod/github.com/rs/cors@v1.10.1/cors.go:281
2024-02-14T17:03:16.530716305Z net/http.HandlerFunc.ServeHTTP
2024-02-14T17:03:16.530718313Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2136
2024-02-14T17:03:16.530720371Z <http://go.signoz.io/signoz/ee/query-service/app.(*Server).createPublicServer.CompressHandler.CompressHandlerLevel.func3|go.signoz.io/signoz/ee/query-service/app.(*Server).createPublicServer.CompressHandler.CompressHandlerLevel.func3>
2024-02-14T17:03:16.530722516Z 	/home/runner/go/pkg/mod/github.com/gorilla/handlers@v1.5.1/compress.go:141
2024-02-14T17:03:16.530724590Z net/http.HandlerFunc.ServeHTTP
2024-02-14T17:03:16.530727571Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2136
2024-02-14T17:03:16.530731298Z net/http.serverHandler.ServeHTTP
2024-02-14T17:03:16.530735517Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2938
2024-02-14T17:03:16.530794958Z net/http.(*conn).serve
2024-02-14T17:03:16.530840225Z 	/opt/hostedtoolcache/go/1.21.7/x64/src/net/http/server.go:2009
2024-02-14T17:03:16.530864039Z 2024-02-14T17:03:16.530Z	INFO	app/server.go:358	/api/v3/query_range	timeTaken:219.69µs	{"timeTaken": "220.334µs", "path": "/api/v3/query_range"}
Looks like is well-known issue #29 so we can ignore this thread.
I found this PR with the Hostmetrics Updated