Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rstiller/inspector-metrics
Typescript metrics / monitoring library
https://github.com/rstiller/inspector-metrics
carbon counter csv elasticsearch elasticsearch-metrics elasticsearch-monitoring gauge graphite graphite-carbon hdrhistogram histogram influxdb meters metrics monitoring node-vm promethues timer typescript
Last synced: about 1 month ago
JSON representation
Typescript metrics / monitoring library
- Host: GitHub
- URL: https://github.com/rstiller/inspector-metrics
- Owner: rstiller
- License: mit
- Created: 2017-03-25T21:39:01.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T23:50:19.000Z (over 1 year ago)
- Last Synced: 2024-05-05T06:02:32.198Z (10 months ago)
- Topics: carbon, counter, csv, elasticsearch, elasticsearch-metrics, elasticsearch-monitoring, gauge, graphite, graphite-carbon, hdrhistogram, histogram, influxdb, meters, metrics, monitoring, node-vm, promethues, timer, typescript
- Language: TypeScript
- Homepage: https://rstiller.github.io/inspector-metrics/
- Size: 8.57 MB
- Stars: 22
- Watchers: 3
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# inspector-metrics
Monitoring / metric library similar to http://metrics.dropwizard.io
[](https://github.com/rstiller/inspector-metrics/actions/workflows/ci.yml)
This is the mono repository for the `inspector-metrics` modules.
`inspector-metrics` modules are a collection of modules around application metrics and monitoring for nodejs.Take a look at the [Documentation](https://rstiller.github.io/inspector-metrics/).
## Features
- metric model independent from time-series DB
- multiple reporter modules
- multi process support ([nodejs cluster](https://nodejs.org/api/cluster.html))
- business friendly license ([MIT](https://www.opensource.org/licenses/mit-license.php) License)## Modules
| Module | Description | Link | |
| :--- | :--- | :--- | :--- |
| [inspector-metrics](packages/inspector-metrics) | API / interface module | |   |
| *Reporter* | | | |
| [inspector-carbon](packages/inspector-carbon) | reporter for graphite / carbon | [graphite](https://www.npmjs.com/package/graphite) |   |
| [inspector-csv](packages/inspector-csv) | reporter for CSV files | |   |
| [inspector-elasticsearch](packages/inspector-elasticsearch) | reporter for elasticsearch | [elasticsearch](https://github.com/elastic/elasticsearch-js) |   |
| [inspector-influx](packages/inspector-influx) | reporter for influxdb | [influxdb](https://github.com/node-influx/node-influx) |   |
| [inspector-prometheus](packages/inspector-prometheus) | reporter for prometheus / pushgateway | [prometheus](https://prometheus.io/docs/introduction/overview/) |   |
| *Metric Collectors* | | | |
| [inspector-vm](packages/inspector-vm) | metric collection for nodejs VM | |   |## 3rd party modules
| Module | Description | Link | |
| :--- | :--- | :--- | :--- |
| [inspector-amqp](https://github.com/ttous/inspector-amqp) | reporter for AMQP | [amqp-ts](https://github.com/abreits/amqp-ts) |   |
| [inspector-nats](https://github.com/ttous/inspector-nats) | reporter for [NATS](https://nats.io/) | [node-nats](https://github.com/nats-io/node-nats) |   |## Examples
Code examples for `javascript` and `typescript` are in the `examples` folder.
## development
### local setup / prerequisites
You should have [nodejs](https://nodejs.org/en/), [docker](https://www.docker.com/) and [docker-compose](https://docs.docker.com/compose/) installed.
boot test environment:
`./test-env/boot.sh`shutdown test environment:
`./test-env/reset.sh`execute compatibility tests:
`docker-compose run --rm nodeX`
_X = nodejs version (available: 14, 15, 16, 17, 18, 19)_init / update project (if a new dependency is introduced or an existing is updated):
```bash
pnpm i
```generate dependency report:
```bash
# run 'pnpm run build' before checking dependencies
docker-compose run --rm deps
```release packages / publish docs:
```bash
# check functionality
pnpm i
pnpm run build# publish docs
rm -fr docs/
git branch -D gh-pages
git worktree prune
git worktree list
git worktree add -b gh-pages docs origin/gh-pages
pnpm run publishDocs# publish package
pnpm publish
```## License
[MIT](https://www.opensource.org/licenses/mit-license.php)