...

Text file src/edge-infra.dev/cmd/edge/monitoring/prometheus/BUILD.bazel

Documentation: edge-infra.dev/cmd/edge/monitoring/prometheus

     1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
     2load("//hack/build/rules/container:index.bzl", "container_push", "go_oci_image")
     3
     4go_oci_image(
     5    name = "prometheus_container",
     6    embed = [":prometheus_lib"],
     7    tags = ["manual"],
     8)
     9
    10container_push(
    11    name = "container_push",
    12    image = ":prometheus_container",
    13    image_name = "prometheus-stackdriver",
    14    repository_file = "//hack/build/rules/container:workloads-repo",
    15)
    16
    17go_library(
    18    name = "prometheus_lib",
    19    srcs = ["main.go"],
    20    importpath = "edge-infra.dev/cmd/edge/monitoring/prometheus",
    21    visibility = ["//visibility:private"],
    22    deps = ["//pkg/edge/monitoring/k8s/controllers/prometheusctl"],
    23)
    24
    25go_binary(
    26    name = "prometheus",
    27    embed = [":prometheus_lib"],
    28    visibility = ["//visibility:public"],
    29)

View as plain text