forked from awaragi/prometheus-mssql-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
49 lines (49 loc) · 2.16 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"name": "prometheus-mssql-exporter",
"version": "1.1.0",
"main": "src/index.js",
"private": false,
"keywords": [
"prometheus",
"mssql",
"exporter",
"metrics"
],
"author": {
"name": "Pierre Awaragi",
"email": "pierre@awaragi.com"
},
"license": "MIT",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "https://github.com/awaragi/prometheus-mssql-exporter.git"
},
"bugs": {
"url": "https://github.com/awaragi/prometheus-mssql-exporter/issues"
},
"scripts": {
"docker:build": "docker build . -t awaragi/prometheus-mssql-exporter",
"docker:run": "export DOCKERID=$(docker build -q .) && docker run --name prometheus-mssql-exporter --rm -it -p 4000:4000 -e SERVER=$(docker inspect mssql | jq -r '.[].NetworkSettings.Networks.bridge.IPAddress') -e USERNAME=SA -e PASSWORD=qkD4x3yy -e DEBUG=app,db,metrics $DOCKERID ; docker image rm $DOCKERID",
"docker:run:published": "export DOCKERID=awaragi/prometheus-mssql-exporter && docker run --name prometheus-mssql-exporter --rm -it -p 4000:4000 -e SERVER=$(docker inspect mssql | jq -r '.[].NetworkSettings.Networks.bridge.IPAddress') -e USERNAME=SA -e PASSWORD=qkD4x3yy -e DEBUG=app,db,metrics $DOCKERID ; docker image rm $DOCKERID",
"start": "DEBUG=app,db,metrics SERVER=localhost USERNAME=SA PASSWORD=qkD4x3yy node src/index.js",
"start:verbose": "DEBUG=app,db,metrics,metrics SERVER=localhost USERNAME=SA PASSWORD=qkD4x3yy node src/index.js",
"test:mssql:2019": "docker run --name mssql --rm -e ACCEPT_EULA=Y -e SA_PASSWORD=qkD4x3yy -p 1433:1433 --name mssql mcr.microsoft.com/mssql/server:2019-latest",
"test:mssql:2017": "docker run --name mssql --rm -e ACCEPT_EULA=Y -e SA_PASSWORD=qkD4x3yy -p 1433:1433 --name mssql mcr.microsoft.com/mssql/server:2017-latest",
"test:fetch": "curl http://localhost:4000/metrics",
"test": "jest test",
"format": "prettier --write .",
"metrics": "node src/metrics-docs.js"
},
"dependencies": {
"debug": "4.3.4",
"express": "4.17.3",
"prom-client": "9.1.1",
"tedious": "14.3.0"
},
"devDependencies": {
"jest": "27.5.1",
"prettier": "2.6.0",
"superagent": "7.1.1"
}
}