https://github.com/open-services/finance-watch
Gathers metrics about finances and exposes it as prometheus metrics
https://github.com/open-services/finance-watch
Last synced: about 1 year ago
JSON representation
Gathers metrics about finances and exposes it as prometheus metrics
- Host: GitHub
- URL: https://github.com/open-services/finance-watch
- Owner: open-services
- Created: 2019-05-06T10:29:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-18T10:30:14.000Z (about 7 years ago)
- Last Synced: 2024-04-12T02:21:16.017Z (about 2 years ago)
- Language: Clojure
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# finance-watch
Gathers metrics about finances and exposes it as prometheus metrics
## Usage
Run the application with `lein run` or compile to a jar with `lein uberjar` and then run:
```
$ java -jar target/uberjar/finance-watch-0.1.1-SNAPSHOT-standalone.jar
```
## Options
You can set the `address` and `port` by setting the env vars `ADDRESS` and `PORT`.
## Examples
```
$ java -jar target/uberjar/finance-watch-0.1.1-SNAPSHOT-standalone.jar
Now watching collective open-registry
Starting server at 127.0.0.1:8080
```
Now you can make a GET request to `127.0.0.1:8080/metrics` to get the metrics.
```
$ curl localhost:8080/metrics
# HELP open_registry_contributors_count a gauge metric.
# TYPE open_registry_contributors_count gauge
open_registry_contributors_count 0.0
# HELP open_registry_backers_count a gauge metric.
# TYPE open_registry_backers_count gauge
open_registry_backers_count 6.0
# HELP open_registry_yearly_income a gauge metric.
# TYPE open_registry_yearly_income gauge
open_registry_yearly_income 43583.0
# HELP open_registry_balance a gauge metric.
# TYPE open_registry_balance gauge
open_registry_balance 21322.0
```
## License
Copyright 2019 Open-Registry
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.