Update prometheus.erl to 4.10.0
Since 4.10.0 was released specifically to address an issue we encountered in RabbitMQ integration with prometheus.erl, new test was added to validate this functionality in the future.
This commit is contained in:
parent
43b78aa7ad
commit
510415f8b9
|
|
@ -262,8 +262,8 @@ erlang_app(
|
|||
],
|
||||
)
|
||||
""",
|
||||
sha256 = "d75e80d7b2c1be6bf296e211e806e939ae3d9e0428f45b4caad1817f028213d3",
|
||||
version = "4.9.1",
|
||||
sha256 = "2a99bb6dce85e238c7236fde6b0064f9834dc420ddbd962aac4ea2a3c3d59384",
|
||||
version = "4.10.0",
|
||||
)
|
||||
|
||||
erlang_package.git_package(
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ all() ->
|
|||
[
|
||||
{group, default_config},
|
||||
{group, config_path},
|
||||
{group, global_labels},
|
||||
{group, aggregated_metrics},
|
||||
{group, per_object_metrics},
|
||||
{group, per_object_endpoint_metrics},
|
||||
|
|
@ -29,6 +30,7 @@ groups() ->
|
|||
[
|
||||
{default_config, [], generic_tests()},
|
||||
{config_path, [], generic_tests()},
|
||||
{global_labels, [], generic_tests()},
|
||||
{aggregated_metrics, [], [
|
||||
aggregated_metrics_test,
|
||||
specific_erlang_metrics_present_test,
|
||||
|
|
@ -80,6 +82,10 @@ init_per_group(config_path, Config0) ->
|
|||
PathConfig = {rabbitmq_prometheus, [{path, "/bunnieshop"}]},
|
||||
Config1 = rabbit_ct_helpers:merge_app_env(Config0, PathConfig),
|
||||
init_per_group(config_path, Config1, [{prometheus_path, "/bunnieshop"}]);
|
||||
init_per_group(global_labels, Config0) ->
|
||||
GlobalLabelsConfig = {prometheus, [{global_labels, [{"foo", "bar"}]}]},
|
||||
Config1 = rabbit_ct_helpers:merge_app_env(Config0, GlobalLabelsConfig),
|
||||
init_per_group(aggregated_metrics, Config1);
|
||||
init_per_group(per_object_metrics, Config0) ->
|
||||
PathConfig = {rabbitmq_prometheus, [{return_per_object_metrics, true}]},
|
||||
Config1 = rabbit_ct_helpers:merge_app_env(Config0, PathConfig),
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ dep_accept = hex 0.3.5
|
|||
dep_cowboy = hex 2.8.0
|
||||
dep_cowlib = hex 2.9.1
|
||||
dep_looking_glass = git https://github.com/rabbitmq/looking_glass.git master
|
||||
dep_prometheus = hex 4.9.1
|
||||
dep_prometheus = hex 4.10.0
|
||||
dep_ra = hex 2.4.6
|
||||
dep_ranch = hex 2.1.0
|
||||
dep_recon = hex 2.5.3
|
||||
|
|
|
|||
|
|
@ -141,11 +141,11 @@ def rabbitmq_external_deps(rabbitmq_workspace = "@rabbitmq-server"):
|
|||
|
||||
hex_pm_erlang_app(
|
||||
name = "prometheus",
|
||||
version = "4.9.1",
|
||||
version = "4.10.0",
|
||||
deps = [
|
||||
"@quantile_estimator//:erlang_app",
|
||||
],
|
||||
sha256 = "d75e80d7b2c1be6bf296e211e806e939ae3d9e0428f45b4caad1817f028213d3",
|
||||
sha256 = "2a99bb6dce85e238c7236fde6b0064f9834dc420ddbd962aac4ea2a3c3d59384",
|
||||
)
|
||||
|
||||
github_erlang_app(
|
||||
|
|
|
|||
Loading…
Reference in New Issue