Skip to content

Commit

Permalink
Remove prometheus_process_collector
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith committed Jul 30, 2024
1 parent 3357143 commit aec3128
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ jobs:
run: |
mix deps.get
- name: Compile prometheus_process_collector
run: |
# The prometheus_process_collector's makefile doesn't work properly
# for new OTP, so we set the variables it needs in a way that works.
export ERTS_INCLUDE_DIR=$(erl -noshell -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)])." -s init stop)
export ERL_INTERFACE_INCLUDE_DIR=$(erl -noshell -eval "io:format(\"~s\", [code:lib_dir(erl_interface, include)])." -s init stop)
export ERL_INTERFACE_LIB_DIR=$(erl -noshell -eval "io:format(\"~s\", [code:lib_dir(erl_interface, lib)])." -s init stop)
MIX_ENV=test mix deps.compile prometheus_process_collector
# - name: Compile prometheus_process_collector
# run: |
# # The prometheus_process_collector's makefile doesn't work properly
# # for new OTP, so we set the variables it needs in a way that works.
# export ERTS_INCLUDE_DIR=$(erl -noshell -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)])." -s init stop)
# export ERL_INTERFACE_INCLUDE_DIR=$(erl -noshell -eval "io:format(\"~s\", [code:lib_dir(erl_interface, include)])." -s init stop)
# export ERL_INTERFACE_LIB_DIR=$(erl -noshell -eval "io:format(\"~s\", [code:lib_dir(erl_interface, lib)])." -s init stop)
# MIX_ENV=test mix deps.compile prometheus_process_collector

- name: Run tests
run: |
Expand Down
3 changes: 2 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ defmodule TurnJunebugExpressway.Mixfile do
{:gettext, "~> 0.17.1"},
{:prometheus_phoenix, "~> 1.3.0"},
{:prometheus_plugs, "~> 1.1.5"},
{:prometheus_process_collector, "~> 1.6.0"},
# It looks like we don't actually need this.
# {:prometheus_process_collector, "~> 1.6.0"},
{:plug_cowboy, "~> 2.1"},
{:jason, "~> 1.1"},
{:amqp, "~> 1.3"},
Expand Down

0 comments on commit aec3128

Please sign in to comment.