@libp2p/prometheus-metrics 1.1.2 → 1.1.3
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 +8 -3
- package/dist/typedoc-urls.json +5 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](http://libp2p.io/)
|
|
4
4
|
[](https://discuss.libp2p.io)
|
|
5
5
|
[](https://codecov.io/gh/libp2p/js-libp2p-prometheus-metrics)
|
|
6
|
-
[](https://github.com/libp2p/js-libp2p-prometheus-metrics/actions/workflows/js-test-and-release.yml?query=branch%3Amain)
|
|
7
7
|
|
|
8
8
|
> Collect libp2p metrics for scraping by Prometheus or Graphana
|
|
9
9
|
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
- [Memory usage](#memory-usage)
|
|
18
18
|
- [DHT query time](#dht-query-time)
|
|
19
19
|
- [TCP transport dialer errors](#tcp-transport-dialer-errors)
|
|
20
|
+
- [API Docs](#api-docs)
|
|
20
21
|
- [License](#license)
|
|
21
|
-
- [
|
|
22
|
+
- [Contribution](#contribution)
|
|
22
23
|
|
|
23
24
|
## Install
|
|
24
25
|
|
|
@@ -80,6 +81,10 @@ or
|
|
|
80
81
|
|
|
81
82
|
rate(libp2p_tcp_dialer_errors_total[30s])
|
|
82
83
|
|
|
84
|
+
## API Docs
|
|
85
|
+
|
|
86
|
+
- <https://libp2p.github.io/js-libp2p-prometheus-metrics>
|
|
87
|
+
|
|
83
88
|
## License
|
|
84
89
|
|
|
85
90
|
Licensed under either of
|
|
@@ -87,6 +92,6 @@ Licensed under either of
|
|
|
87
92
|
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
|
88
93
|
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
|
89
94
|
|
|
90
|
-
##
|
|
95
|
+
## Contribution
|
|
91
96
|
|
|
92
97
|
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"PrometheusCalculatedMetricOptions": "https://libp2p.github.io/js-libp2p-prometheus-metrics/interfaces/PrometheusCalculatedMetricOptions.html",
|
|
3
|
+
"PrometheusMetricsInit": "https://libp2p.github.io/js-libp2p-prometheus-metrics/interfaces/PrometheusMetricsInit.html",
|
|
4
|
+
"prometheusMetrics": "https://libp2p.github.io/js-libp2p-prometheus-metrics/functions/prometheusMetrics.html"
|
|
5
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/prometheus-metrics",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Collect libp2p metrics for scraping by Prometheus or Graphana",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "Apache-2.0 OR MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"types": "./dist/src/index.d.ts",
|
|
21
21
|
"files": [
|
|
22
22
|
"src",
|
|
23
|
-
"dist
|
|
23
|
+
"dist",
|
|
24
24
|
"!dist/test",
|
|
25
25
|
"!**/*.tsbuildinfo"
|
|
26
26
|
],
|
|
@@ -129,7 +129,8 @@
|
|
|
129
129
|
"test": "aegir test -t node",
|
|
130
130
|
"test:node": "aegir test -t node --cov",
|
|
131
131
|
"test:electron-main": "aegir test -t electron-main --cov",
|
|
132
|
-
"release": "aegir release"
|
|
132
|
+
"release": "aegir release",
|
|
133
|
+
"docs": "aegir docs"
|
|
133
134
|
},
|
|
134
135
|
"dependencies": {
|
|
135
136
|
"@libp2p/interface-connection": "^3.0.2",
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
"it-stream-types": "^1.0.4"
|
|
140
141
|
},
|
|
141
142
|
"devDependencies": {
|
|
142
|
-
"@libp2p/interface-mocks": "^
|
|
143
|
+
"@libp2p/interface-mocks": "^8.0.4",
|
|
143
144
|
"@libp2p/peer-id-factory": "^1.0.19",
|
|
144
145
|
"@multiformats/multiaddr": "^11.0.7",
|
|
145
146
|
"aegir": "^37.5.6",
|