Comments (6)
I believe we figured this out on ElixirForum.
For the history: process collector should be added to dependencies and registered via prometheus_registry:register_collector
or Prometheus.Registry.register_collector
.
from prometheus_process_collector.
Yes, I already did so like on ElixirForum as:
Prometheus.Registry.register_collector(:prometheus_process_collector)
but I got the error above, is this library supported on debian? what OS was it tested on?
from prometheus_process_collector.
Ubuntu it should really work on any Linux. can you show your mix,exs?
from prometheus_process_collector.
Here it is:
defmodule Trackware.Mixfile do
use Mix.Project
def project do
[app: :trackware,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
deps: deps]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {Trackware, []},
applications: [:phoenix, :phoenix_html, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex, :ex_aws, :httpoison, :phoenix_pubsub, :joken, :httpoison, :cqex, :exrm, :edeliver,
:prometheus_ex, :prometheus_ecto, :prometheus_phoenix, :prometheus_plugs, :prometheus_process_collector]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[{:phoenix, "~> 1.2.0"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.0-rc"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.9"},
{:cowboy, "~> 1.0"},
{:ex_aws, "~> 0.4.10"},
{:poison, "~> 1.2"},
{:httpoison, "~> 0.9.0"},
{:joken, "~> 1.2"},
{:edeliver, "~> 1.4.0"},
{:exrm, "~> 1.0.3"},
{:cqex, "~> 0.2.0"},
{:cqerl, github: "matehat/cqerl"},
{:uuid, "~> 1.1", override: true},
{:prometheus_ex, "~> 1.0"},
{:prometheus_ecto, "~> 1.0"},
{:prometheus_phoenix, "~> 1.0"},
{:prometheus_plugs, "~> 1.0"},
{:prometheus_process_collector, "~> 1.0"},
{:remote_monitor, "~> 0.1.0", only: :dev}]
end
# Aliases are shortcut or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"]]
end
end
from prometheus_process_collector.
So you have prometheus_process_collector
in deps and applications... and it's still not loaded? Something really strange happends (OS-independent btw).
- what's in your
_build/dev/lib/
? It should have prometheus_process_collector directory with symlinks; - your versions are a little bit outdated. Checkout the latest here: https://hex.pm/packages?search=prometheus&sort=downloads.
from prometheus_process_collector.
here is what in my r _build/dev/lib/
➜ prometheus_process_collector git:(master) ✗ pwd
/Users/samir/Documents/projects/elixir/_build/dev/lib/prometheus_process_collector➜ prometheus_process_collector git:(master) ✗ ls
ebin mix.rebar.config
I will update deps, thanks
from prometheus_process_collector.
Related Issues (20)
- The on_load function for module prometheus_process_collector returned :error HOT 30
- `erlang:load_nif` fails with `Library version (2.11) not compatible (with 2.10)` HOT 9
- Document how to build with Docker HOT 5
- Erlang VM segfaults in `get_process_info () from prometheus_process_collector-1.3.1/priv/prometheus_process_collector.so` at startup HOT 21
- Conflicting dependencies with `prometheus_ex` HOT 5
- Version bump and release? HOT 1
- {on_load_function_failed,prometheus_process_collector} error HOT 16
- Missing metrics from Process Collector - Rabbit 3.7.7-1 HOT 1
- mix does not compile prometheas_process_collector 1.4.0 correctly HOT 2
- Process metrics not available HOT 1
- Compiling problems with Elixir 1.8, OTP21 and OSX 10.14.2 HOT 38
- Compiling issues with Linux Ubuntu x86_64 Linux docker HOT 1
- Compiling problems on elixir:1.9.1-alpine docker image HOT 5
- OTP 23 has removed -lerl_interface
- Always builds x86_64 binary on Darwin
- Does prometheus_process_collector support debian:stretch(ARM)
- Update version HOT 9
- Using rebar3_auto plugin (to auto-reload code) gives error `Upgrade not supported by this NIF library.`
- Mac m1 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus_process_collector.