@libp2p/prometheus-metrics 1.1.5-b1024c6c → 1.1.5-c999d6a7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -6
- package/package.json +6 -9
package/README.md
CHANGED
|
@@ -59,27 +59,39 @@ Some useful queries are:
|
|
|
59
59
|
|
|
60
60
|
#### Data sent/received
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
```
|
|
63
|
+
rate(libp2p_data_transfer_bytes_total[30s])
|
|
64
|
+
```
|
|
63
65
|
|
|
64
66
|
#### CPU usage
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
```
|
|
69
|
+
rate(process_cpu_user_seconds_total[30s]) * 100
|
|
70
|
+
```
|
|
67
71
|
|
|
68
72
|
#### Memory usage
|
|
69
73
|
|
|
70
|
-
|
|
74
|
+
```
|
|
75
|
+
nodejs_memory_usage_bytes
|
|
76
|
+
```
|
|
71
77
|
|
|
72
78
|
#### DHT query time
|
|
73
79
|
|
|
74
|
-
|
|
80
|
+
```
|
|
81
|
+
libp2p_kad_dht_wan_query_time_seconds
|
|
82
|
+
```
|
|
75
83
|
|
|
76
84
|
or
|
|
77
85
|
|
|
78
|
-
|
|
86
|
+
```
|
|
87
|
+
libp2p_kad_dht_lan_query_time_seconds
|
|
88
|
+
```
|
|
79
89
|
|
|
80
90
|
#### TCP transport dialer errors
|
|
81
91
|
|
|
82
|
-
|
|
92
|
+
```
|
|
93
|
+
rate(libp2p_tcp_dialer_errors_total[30s])
|
|
94
|
+
```
|
|
83
95
|
|
|
84
96
|
## API Docs
|
|
85
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/prometheus-metrics",
|
|
3
|
-
"version": "1.1.5-
|
|
3
|
+
"version": "1.1.5-c999d6a7",
|
|
4
4
|
"description": "Collect libp2p metrics for scraping by Prometheus or Graphana",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "Apache-2.0 OR MIT",
|
|
@@ -42,22 +42,19 @@
|
|
|
42
42
|
"test:electron-main": "aegir test -t electron-main --cov"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@libp2p/interface": "0.0.1-
|
|
46
|
-
"@libp2p/logger": "2.1.1-
|
|
45
|
+
"@libp2p/interface": "0.0.1-c999d6a7",
|
|
46
|
+
"@libp2p/logger": "2.1.1-c999d6a7",
|
|
47
47
|
"it-foreach": "^2.0.3",
|
|
48
48
|
"it-stream-types": "^2.0.1",
|
|
49
49
|
"prom-client": "^14.1.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@libp2p/interface-compliance-tests": "3.0.7-
|
|
53
|
-
"@libp2p/peer-id-factory": "2.0.3-
|
|
52
|
+
"@libp2p/interface-compliance-tests": "3.0.7-c999d6a7",
|
|
53
|
+
"@libp2p/peer-id-factory": "2.0.3-c999d6a7",
|
|
54
54
|
"@multiformats/multiaddr": "^12.1.3",
|
|
55
|
-
"aegir": "^
|
|
55
|
+
"aegir": "^40.0.1",
|
|
56
56
|
"it-drain": "^3.0.2",
|
|
57
57
|
"it-pipe": "^3.0.1",
|
|
58
58
|
"p-defer": "^4.0.0"
|
|
59
|
-
},
|
|
60
|
-
"typedoc": {
|
|
61
|
-
"entryPoint": "./src/index.ts"
|
|
62
59
|
}
|
|
63
60
|
}
|