gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/runsc/metricserver/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "metricserver", 10 srcs = [ 11 "metricserver.go", 12 "metricserver_http.go", 13 "metricserver_lifecycle.go", 14 "metricserver_metrics.go", 15 "metricserver_profile.go", 16 ], 17 visibility = ["//runsc:__subpackages__"], 18 deps = [ 19 "//pkg/abi/linux", 20 "//pkg/atomicbitops", 21 "//pkg/log", 22 "//pkg/prometheus", 23 "//pkg/sentry/control", 24 "//pkg/state", 25 "//pkg/sync", 26 "//runsc/config", 27 "//runsc/container", 28 "//runsc/metricserver/containermetrics", 29 "//runsc/sandbox", 30 "@org_golang_google_api//option:go_default_library", 31 "@org_golang_google_grpc//:go_default_library", 32 ], 33 ) 34 35 go_test( 36 name = "metricserver_test", 37 srcs = ["metricserver_test.go"], 38 library = ":metricserver", 39 deps = ["@com_github_google_go_cmp//cmp:go_default_library"], 40 )