forked from deadtrickster/prometheus-plugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
63 lines (56 loc) · 1.74 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
defmodule PrometheusPlugs.Mixfile do
use Mix.Project
@source_url "https://github.com/deadtrickster/prometheus-plugs"
@version "1.1.5"
def project do
[
app: :prometheus_plugs,
version: @version,
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: [
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md": [title: "Prometheus Plugs"]]
]
]
end
def application do
[applications: [:logger, :prometheus_ex, :accept]]
end
defp description do
"""
Prometheus monitoring system client Plugs. Http metrics collector and exporter.
"""
end
defp package do
[
maintainers: ["Ilya Khaprov"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Prometheus.erl" => "https://hex.pm/packages/prometheus",
"Prometheus.ex" => "https://hex.pm/packages/prometheus_ex",
"Inets HTTPD Exporter" => "https://hex.pm/packages/prometheus_httpd",
"Ecto Instrumenter" => "https://hex.pm/packages/prometheus_ecto",
"Phoenix Instrumenter" => "https://hex.pm/packages/prometheus_phoenix",
"Process info Collector" => "https://hex.pm/packages/prometheus_process_collector"
}
]
end
defp deps do
[
{:accept, "~> 0.1"},
{:plug, "~> 1.0"},
{:prometheus_ex, git: "https://github.com/lanodan/prometheus.ex.git", ref: "31f7fbe4b71b79ba27efc2a5085746c4011ceb8f"},
{:prometheus_process_collector, "~> 1.1", optional: true},
{:earmark, ">= 0.0.0", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
end