mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
This is part of a series of changes to add metric charts in performance benchmarks. Comes with a test, which also serves as an end-to-end-ish test of profiling metric functionality from collection to charting. Including `metricsviz` in a `go_binary` requires making it non-`testonly`, which in turn means removing the `dockerutil` dependency, so this uses an interface to break the dependency on `dockerutil.Container`. PiperOrigin-RevId: 633394898
27 lines
841 B
Python
27 lines
841 B
Python
load("//tools:defs.bzl", "go_library")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "metricsviz",
|
|
srcs = [
|
|
"metricsviz.go",
|
|
"metricsviz_groups.go",
|
|
"metricsviz_publish.go",
|
|
],
|
|
visibility = ["//:sandbox"],
|
|
deps = [
|
|
"//pkg/metric",
|
|
"//pkg/metric:metric_go_proto",
|
|
"@com_github_docker_docker//api/types:go_default_library",
|
|
"@com_github_go_echarts_go_echarts_v2//charts:go_default_library",
|
|
"@com_github_go_echarts_go_echarts_v2//components:go_default_library",
|
|
"@com_github_go_echarts_go_echarts_v2//opts:go_default_library",
|
|
"@com_github_go_echarts_go_echarts_v2//types:go_default_library",
|
|
"@org_golang_google_protobuf//encoding/protojson:go_default_library",
|
|
],
|
|
)
|