@midwayjs/prometheus 3.0.0-beta.2 → 3.0.0-beta.6
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/CHANGELOG.md +35 -0
- package/dist/config/config.default.d.ts +2 -2
- package/dist/configuration.js +6 -2
- package/dist/index.d.ts +0 -1
- package/index.d.ts +9 -0
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @midwayjs/prometheus
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @midwayjs/prometheus
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @midwayjs/prometheus
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @midwayjs/prometheus
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DefaultMetricsCollectorConfiguration
|
|
2
|
-
export declare const prometheus:
|
|
1
|
+
import { DefaultMetricsCollectorConfiguration } from 'prom-client';
|
|
2
|
+
export declare const prometheus: DefaultMetricsCollectorConfiguration;
|
|
3
3
|
//# sourceMappingURL=config.default.d.ts.map
|
package/dist/configuration.js
CHANGED
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PrometheusConfiguration = void 0;
|
|
13
13
|
const decorator_1 = require("@midwayjs/decorator");
|
|
14
|
-
const path_1 = require("path");
|
|
15
14
|
const PromClient = require("prom-client");
|
|
16
15
|
const utils_1 = require("./utils/utils");
|
|
17
16
|
const os = require("os");
|
|
@@ -20,6 +19,7 @@ const fs = require("fs");
|
|
|
20
19
|
const http = require("http");
|
|
21
20
|
const qs = require("querystring");
|
|
22
21
|
const dataService_1 = require("./service/dataService");
|
|
22
|
+
const DefaultConfig = require("./config/config.default");
|
|
23
23
|
let PrometheusConfiguration = class PrometheusConfiguration {
|
|
24
24
|
async onReady() {
|
|
25
25
|
PromClient.collectDefaultMetrics(this.prometheusConfig);
|
|
@@ -102,7 +102,11 @@ __decorate([
|
|
|
102
102
|
PrometheusConfiguration = __decorate([
|
|
103
103
|
(0, decorator_1.Configuration)({
|
|
104
104
|
namespace: 'prometheus',
|
|
105
|
-
importConfigs: [
|
|
105
|
+
importConfigs: [
|
|
106
|
+
{
|
|
107
|
+
default: DefaultConfig,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
106
110
|
})
|
|
107
111
|
], PrometheusConfiguration);
|
|
108
112
|
exports.PrometheusConfiguration = PrometheusConfiguration;
|
package/dist/index.d.ts
CHANGED
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/prometheus",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.6",
|
|
4
4
|
"description": "midway component for prometheus",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"typings": "
|
|
6
|
+
"typings": "index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"test": "node --require=ts-node/register ../../node_modules/.bin/jest",
|
|
@@ -18,14 +18,15 @@
|
|
|
18
18
|
],
|
|
19
19
|
"files": [
|
|
20
20
|
"dist/**/*.js",
|
|
21
|
-
"dist/**/*.d.ts"
|
|
21
|
+
"dist/**/*.d.ts",
|
|
22
|
+
"index.d.ts"
|
|
22
23
|
],
|
|
23
24
|
"license": "MIT",
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@midwayjs/core": "^3.0.0-beta.
|
|
26
|
-
"@midwayjs/decorator": "^3.0.0-beta.
|
|
27
|
-
"@midwayjs/koa": "^3.0.0-beta.
|
|
28
|
-
"@midwayjs/mock": "^3.0.0-beta.
|
|
26
|
+
"@midwayjs/core": "^3.0.0-beta.6",
|
|
27
|
+
"@midwayjs/decorator": "^3.0.0-beta.6",
|
|
28
|
+
"@midwayjs/koa": "^3.0.0-beta.6",
|
|
29
|
+
"@midwayjs/mock": "^3.0.0-beta.6",
|
|
29
30
|
"@types/request": "^2.48.5"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
@@ -35,5 +36,5 @@
|
|
|
35
36
|
"engines": {
|
|
36
37
|
"node": ">=12"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "e4595d30b369e36bef21b36f2b3737d8bc2f802d"
|
|
39
40
|
}
|