-
Notifications
You must be signed in to change notification settings - Fork 21
/
mix.exs
61 lines (55 loc) · 1.62 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
defmodule PrometheusEcto.Mixfile do
use Mix.Project
@source_url "https://github.com/deadtrickster/prometheus-ecto"
@version "1.4.3"
def project do
[
app: :prometheus_ecto,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
docs: [
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md"]
]
]
end
def application do
[applications: [:logger, :prometheus_ex]]
end
defp description do
"""
Prometheus monitoring system client Ecto integration. Observes queries duration.
"""
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",
"Plugs Instrumenter/Exporter" => "https://hex.pm/packages/prometheus_plugs",
"Phoenix Instrumenter" => "https://hex.pm/packages/prometheus_phoenix",
"Process info Collector" => "https://hex.pm/packages/prometheus_process_collector"
}
]
end
defp deps do
[
{:prometheus_ex, "~> 1.1 or ~> 2.0 or ~> 3.0"},
{:ecto, "~> 2.0 or ~> 3.0"},
{:mariaex, ">= 0.0.0", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev},
{:earmark, ">= 0.0.0", only: :dev},
{:credo, github: "rrrene/credo", only: [:dev, :test], runtime: false, app: false}
]
end
end