Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85823830
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/README.md b/README.md
index 7d50f62..1b611eb 100644
--- a/README.md
+++ b/README.md
@@ -1,54 +1,56 @@
# Prometheus.ex
-[](https://travis-ci.org/deadtrickster/prometheus.ex)
-[](https://coveralls.io/github/deadtrickster/prometheus.ex?branch=master)
-[](https://hex.pm/packages/prometheus_ex) [](https://hexdocs.pm/prometheus_ex/)
+[](https://travis-ci.org/deadtrickster/prometheus.ex)
+[](https://hex.pm/packages/prometheus_ex)
+[](https://coveralls.io/github/deadtrickster/prometheus.ex?branch=master)
+[](https://hex.pm/packages/prometheus_ex)
+[](https://hexdocs.pm/prometheus_ex/)
Elixir [Prometheus.io](https://prometheus.io) client based on [Prometheus.erl](https://github.com/deadtrickster/prometheus.erl).
## Example
```elixir
defmodule ExampleInstrumenter do
use Prometheus.Metric
def setup do
Histogram.new([name: :http_request_duration_milliseconds,
labels: [:method],
buckets: [100, 300, 500, 750, 1000],
help: "Http Request execution time"])
end
def instrument(%{time: time, method: method}) do
Histogram.observe([name: :http_request_duration_milliseconds, labels: [method]], time)
end
end
```
## Integrations / Collectors / Instrumenters
- [Ecto collector](https://github.com/deadtrickster/prometheus-ecto)
- [Plugs Instrumenter/Exporter](https://github.com/deadtrickster/prometheus-plugs)
- [Elli middleware](https://github.com/elli-lib/elli_prometheus)
- [Fuse plugin](https://github.com/jlouis/fuse#fuse_stats_prometheus)
- [Phoenix instrumenter](https://github.com/deadtrickster/prometheus-phoenix)
- [Process Info Collector](https://github.com/deadtrickster/prometheus_process_collector.erl)
- [RabbitMQ Exporter](https://github.com/deadtrickster/prometheus_rabbitmq_exporter)
## Installation
[Available in Hex](https://hex.pm/packages/prometheus_ex), the package can be installed as:
1. Add `prometheus_ex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:prometheus_ex, "~> 1.0.0"}]
end
```
2. Ensure `prometheus_ex` is started before your application:
```elixir
def application do
[applications: [:prometheus_ex]]
end
```
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Oct 29, 9:32 AM (8 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1797869
Default Alt Text
(2 KB)
Attached To
Mode
R26 prometheus.ex
Attached
Detach File
Event Timeline