Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hekike/node-report-analytics
Node.js Diagnostic Report Analytics
https://github.com/hekike/node-report-analytics
analytics diagnostics nodejs
Last synced: about 1 month ago
JSON representation
Node.js Diagnostic Report Analytics
- Host: GitHub
- URL: https://github.com/hekike/node-report-analytics
- Owner: hekike
- Created: 2019-06-11T03:23:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T15:56:30.000Z (over 5 years ago)
- Last Synced: 2024-06-19T15:06:54.474Z (5 months ago)
- Topics: analytics, diagnostics, nodejs
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-report-analytics
[![CircleCI](https://circleci.com/gh/hekike/node-report-analytics.svg?style=svg&circle-token=7fc6be4be1ab10cc0029a42ef6e349fb5f9eae06)](https://circleci.com/gh/hekike/node-report-analytics)
Processes Node.js [Diagnostic Report](https://nodejs.org/api/report.html)(s).
Requires `Node 12.x` or greater.
## Usage
```
Usage:
node-report-analytics [command]Available Commands:
elastic Loads Diagnostics Report(s) to Elasticsearch
help Help about any command
stats Prints the aggregated statistics of Diagnostics Report(s)Flags:
-h, --help help for node-report-analytics
```### Stats
Print aggregated results on terminal.
```
make generate-report
make stats
```Output:
```
+---------+-------+-------------------+------------------+------------------+
| HASH | COUNT | MESSAGE | FIRST OCCURENCE | LAST OCCURENCE |
+---------+-------+-------------------+------------------+------------------+
| 7b14b96 | 2 | Error: My Error | 2019-06-10 20:14 | 2019-06-10 20:15 |
| 2aac2df | 1 | Error: My Error 2 | 2019-06-10 20:15 | 2019-06-10 20:15 |
+---------+-------+-------------------+------------------+------------------+
```### Elastic
Insert reports by hash to Elasticsearch.
```
make docker-compose
make elastic
```Output:
```
7b14b968202c3218514e54f627c20de43323a631, 2019-06-10 20:14:52 +0000 UTC, Error: My Error
```## Test
```
make test
```