Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Stab at prometheus exporter #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
* Mon Jul 01 2019 Anthony Molinaro <[email protected]> 7.0.0
- Added extra field to #md_metric record for description (NOT BACKWARD
COMPATIBLE if using this record)
- Moved many functions from mondemand_statdb module to mondemand module
- Added optional http server with prometheus exporter

* Tue Jun 18 2019 Anthony Molinaro <[email protected]> 6.12.1
- rename some confusing names
- get mondemand_statdb:config() to print out parts of md_config table
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ clean:
if test -d _build; then $(REBAR3) clean; fi

maintainer-clean: clean
rm -rf _build
rm -rf _build deps ebin tmp _checkouts/*/ebin

.PHONY: all test name version clean maintainer-clean
4 changes: 3 additions & 1 deletion include/mondemand.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
}).
-record (md_metric, { type,
key,
value
value,
description = "",
collect_time = undefined
}).
-record (md_statset, { count,
sum,
Expand Down
8 changes: 5 additions & 3 deletions mondemand_dev.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
{ lwes_channel, { 1, [ { "127.0.0.1", 21512 } ] } }
% { lwes_channel, { 1, [ { "127.0.0.1", 20602 } ] } },
% { lwes_channel, { 2, [{"127.0.0.1",20602}, {"172.16.107.128", 20602}] } },
% { config_file, "mondemand.conf" },
% , { vmstats, [ { program_id, mondemand_erlang } ] }
% { send_interval, 5 }
% , { config_file, "mondemand.conf" },
, { vmstats, [ { program_id, erlang_vm } ] }
% , { lwes_stats_disabled, true }
% , { send_interval, 5 }
, { httpd, [ {port, 8082} ] }
]
}
].
8 changes: 4 additions & 4 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@

%% enable coverage output when running eunit
{ cover_enabled, true }.
{ cover_export_enabled, true }.
{ cover_opts, [verbose] }.
{ cover_print_enabled, true }.

%% always include debug info so AST is included in beams
%% always include debug_info so AST is included in beams
{erl_opts,
[
debug_info,
{platform_define, "^(19|2)", allocator_stats_available}
]
}.

{dialyzer, [ {warnings, [no_unused]} ]}.

{clean_files, ["ebin", "doc"]}.

{deps,
[
{ lwes, {git, "git://github.com/lwes/lwes-erlang.git", {tag, "5.0.0"}} },
{ parse_trans, {git, "git://github.com/uwiger/parse_trans.git", {tag, "3.2.0"} } }
{ parse_trans, {git, "git://github.com/uwiger/parse_trans.git", {tag, "3.3.0"} } }
]
}.
Loading