Skip to content

Commit 2571f54

Browse files
authored
bazel-registry: Add prometheus-metrics-model@0.6.2.envoy (#3704)
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent 4df6e10 commit 2571f54

File tree

5 files changed

+76
-0
lines changed

5 files changed

+76
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module(
2+
name = "prometheus-metrics-model",
3+
version = "0.6.2.envoy",
4+
compatibility_level = 1,
5+
repo_name = "prometheus_metrics_model",
6+
)
7+
8+
bazel_dep(name = "protobuf", version = "33.4.envoy")
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
load("@protobuf//bazel:proto_library.bzl", "proto_library")
2+
load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
3+
4+
proto_library(
5+
name = "client_model",
6+
srcs = [
7+
"io/prometheus/client/metrics.proto",
8+
],
9+
strip_import_prefix = "",
10+
deps = [
11+
"@protobuf//:timestamp_proto",
12+
],
13+
visibility = ["//visibility:public"],
14+
)
15+
16+
cc_proto_library(
17+
name = "client_model_cc_proto",
18+
deps = [":client_model"],
19+
visibility = ["//visibility:public"],
20+
)
21+
22+
# Backward compatibility aliases
23+
alias(
24+
name = "client_model_proto",
25+
actual = ":client_model",
26+
visibility = ["//visibility:public"],
27+
)
28+
29+
alias(
30+
name = "prometheus-metrics-model",
31+
actual = ":client_model_cc_proto",
32+
visibility = ["//visibility:public"],
33+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2404
5+
- macos
6+
bazel:
7+
- 8.x
8+
9+
tasks:
10+
verify_targets:
11+
name: Verify build targets
12+
platform: ${{ platform }}
13+
bazel: ${{ bazel }}
14+
build_targets:
15+
- "@prometheus-metrics-model//:client_model"
16+
- "@prometheus-metrics-model//:client_model_cc_proto"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"url": "https://github.com/prometheus/client_model/archive/v0.6.2.tar.gz",
3+
"integrity": "sha256-R8XqeUn2jn97NENQxZtr0x7rkh8O7Gw6Vm4nzxlRRww=",
4+
"strip_prefix": "client_model-0.6.2",
5+
"overlay": {
6+
"BUILD.bazel": "sha256-dQjxvJYJ9Es5e41iIrXaW9qy5R/OVcvurTfwd/E/hlQ="
7+
}
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"homepage": "https://github.com/prometheus/client_model",
3+
"maintainers": [],
4+
"repository": [
5+
"github:prometheus/client_model"
6+
],
7+
"versions": [
8+
"0.6.2.envoy"
9+
],
10+
"yanked_versions": {}
11+
}

0 commit comments

Comments
 (0)