Closed briancoutinho closed 1 year ago
@briancoutinho has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
This pull request was exported from Phabricator. Differential Revision: D46710501
This pull request was exported from Phabricator. Differential Revision: D46710501
@briancoutinho merged this pull request in facebookincubator/dynolog@1fa5af75c52aab0ff685b85b6fb32626164b8aab.
Prometheus support
148
Enable logging to prometheus- this will be used in environments with their prometheus logging set up already. We leverage the library https://github.com/jupp0r/prometheus-cpp/ for this work.
Parts
Output
Ran on my laptop using a docker container.
How to Run
Please install Docker desktop.
docker build . -t prometheus:v1
docker run -p 9090:9090 -it -v ~/Work/dynolog_oss/dynolog:/workspace/dynolog prometheus:v1 /bin/bash
./scripts/build.sh
To get the logging setup add the following in prometheus.yml
Then run prometheus and dynolog.
Open https://localhost:9090/