forked from ocaml/opam-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[new release] prometheus and prometheus-app (1.2)
CHANGES: - Add lwt collectors and pre-collectors (@killian-delarue, mirage/prometheus#43). Note that this is a temporary feature while we wait for OCaml 5 to be released, when this can be replaced by the use of effects. - Fix deprecations in Fmt 0.8.10 (@MisterDA, mirage/prometheus#36). - General build updates, upstream deprecations, etc (@talex5, mirage/prometheus#33 mirage/prometheus#34 mirage/prometheus#35 mirage/prometheus#40 mirage/prometheus#42).
- Loading branch information
Showing
18 changed files
with
111 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
opam-version: "2.0" | ||
synopsis: "Client library for Prometheus monitoring" | ||
description: """\ | ||
Applications can enable metric reporting using the `prometheus-app` opam package. | ||
This depends on cohttp and can serve the metrics collected above over HTTP. | ||
|
||
The `prometheus-app.unix` ocamlfind library provides the `Prometheus_unix` module, | ||
which includes a cmdliner option and pre-configured web-server. | ||
See the `examples/example.ml` program for an example, which can be run as: | ||
|
||
```shell | ||
$ dune exec -- examples/example.exe --listen-prometheus=9090 | ||
If run with the option --listen-prometheus=9090, this program serves metrics at | ||
http://localhost:9090/metrics | ||
Tick! | ||
Tick! | ||
... | ||
``` | ||
|
||
Unikernels can use `Prometheus_app` instead of `Prometheus_unix` to avoid the `Unix` dependency.""" | ||
maintainer: "talex5@gmail.com" | ||
authors: ["Thomas Leonard" "David Scott"] | ||
license: "Apache-2.0" | ||
homepage: "https://github.com/mirage/prometheus" | ||
doc: "https://mirage.github.io/prometheus/" | ||
bug-reports: "https://github.com/mirage/prometheus/issues" | ||
depends: [ | ||
"ocaml" {>= "4.08"} | ||
"dune" {>= "2.3"} | ||
"prometheus" {= version} | ||
"fmt" {>= "0.8.7"} | ||
"re" | ||
"cohttp-lwt" {>= "4.0.0"} | ||
"cohttp-lwt-unix" {>= "4.0.0"} | ||
"lwt" {>= "2.5.0"} | ||
"cmdliner" | ||
"alcotest" {with-test} | ||
"alcotest-lwt" {with-test} | ||
"asetmap" | ||
"astring" | ||
"logs" {>= "0.6.0"} | ||
] | ||
build: [ | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
dev-repo: "git+https://github.com/mirage/prometheus.git" | ||
url { | ||
src: | ||
"https://github.com/mirage/prometheus/releases/download/v1.2/prometheus-1.2.tbz" | ||
checksum: [ | ||
"sha256=83643a029a6b6de71d14034eee2e94feff1d08755c4a41d583dc1530ab555bcb" | ||
"sha512=bbec7f0728b850b991ec50e76ef2c999341a9469ceaa11b68180f060150c4fe62f3dca87c13914ac331b3d7ef6e46256ae11466b607ecb60d00b8f284cab86b9" | ||
] | ||
} | ||
x-commit-hash: "d1669d0e0d7e44b104755a0fd9700ae87e140f34" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
opam-version: "2.0" | ||
synopsis: "Client library for Prometheus monitoring" | ||
maintainer: "talex5@gmail.com" | ||
authors: ["Thomas Leonard" "David Scott"] | ||
license: "Apache-2.0" | ||
homepage: "https://github.com/mirage/prometheus" | ||
doc: "https://mirage.github.io/prometheus/" | ||
bug-reports: "https://github.com/mirage/prometheus/issues" | ||
depends: [ | ||
"ocaml" {>= "4.01.0"} | ||
"dune" {>= "2.3"} | ||
"astring" | ||
"asetmap" | ||
"re" | ||
"lwt" {>= "2.5.0"} | ||
] | ||
build: [ | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
dev-repo: "git+https://github.com/mirage/prometheus.git" | ||
description: """ | ||
To run services reliably, it is useful if they can report various metrics | ||
(for example, heap size, queue lengths, number of warnings logged, etc). | ||
|
||
A monitoring service can be configured to collect this data regularly. | ||
The data can be graphed to help understand the performance of the service over time, | ||
or to help debug problems quickly. | ||
It can also be used to send alerts if a service is down or behaving poorly. | ||
""" | ||
url { | ||
src: | ||
"https://github.com/mirage/prometheus/releases/download/v1.2/prometheus-1.2.tbz" | ||
checksum: [ | ||
"sha256=83643a029a6b6de71d14034eee2e94feff1d08755c4a41d583dc1530ab555bcb" | ||
"sha512=bbec7f0728b850b991ec50e76ef2c999341a9469ceaa11b68180f060150c4fe62f3dca87c13914ac331b3d7ef6e46256ae11466b607ecb60d00b8f284cab86b9" | ||
] | ||
} | ||
x-commit-hash: "d1669d0e0d7e44b104755a0fd9700ae87e140f34" |