Merge pull request #10941 from HJianBo/enhance-prometheus-sampe-perf

perf(prometheus): udpate the prometheus dep vsn
This commit is contained in:
JianBo He 2023-06-08 21:34:50 +08:00 committed by GitHub
commit 034caaf20f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -1207,7 +1207,7 @@
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "erlang_vm_statistics_run_queues_length_total{job=~\"$job\", instance=\"$instance\"}",
"expr": "erlang_vm_statistics_run_queues_length{job=~\"$job\", instance=\"$instance\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Run queue length",

View File

@ -3,7 +3,7 @@
{deps, [
{emqx, {path, "../emqx"}},
{emqx_utils, {path, "../emqx_utils"}},
{prometheus, {git, "https://github.com/deadtrickster/prometheus.erl", {tag, "v4.8.1"}}}
{prometheus, {git, "https://github.com/emqx/prometheus.erl", {tag, "v4.10.0.1"}}}
]}.
{edoc_opts, [{preprocess, true}]}.

View File

@ -170,4 +170,7 @@ validate_push_gateway_server(Url) ->
%% for CI test, CI don't load the whole emqx_conf_schema.
translation(Name) ->
%% translate 'vm_dist_collector', 'mnesia_collector', 'vm_statistics_collector',
%% 'vm_system_info_collector', 'vm_memory_collector', 'vm_msacc_collector'
%% to prometheus envrionments
emqx_conf_schema:translation(Name).

View File

@ -0,0 +1,3 @@
Improve the collection speed of Prometheus metrics when setting
`prometheus.vm_dist_collector=disabled` and
metric `erlang_vm_statistics_run_queues_length_total` is renamed to `erlang_vm_statistics_run_queues_length`