@opencensus/exporter-prometheus
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -43,3 +43,3 @@ /** | ||
private app; | ||
private server; | ||
private server?; | ||
private registry; | ||
@@ -66,2 +66,4 @@ private static readonly RESERVED_HISTOGRAM_LABEL; | ||
start(): void; | ||
/** Stops the exporter. */ | ||
stop(): void; | ||
private getLabelValues; | ||
@@ -68,0 +70,0 @@ /** |
@@ -61,2 +61,6 @@ "use strict"; | ||
} | ||
/** Stops the exporter. */ | ||
stop() { | ||
this.stopServer(); | ||
} | ||
getLabelValues(columns, tags) { | ||
@@ -66,3 +70,6 @@ const labels = {}; | ||
if (tags.has(tagKey)) { | ||
labels[tagKey.name] = tags.get(tagKey).value; | ||
const tagValue = tags.get(tagKey); | ||
if (tagValue) { | ||
labels[tagKey.name] = tagValue.value; | ||
} | ||
} | ||
@@ -108,4 +115,3 @@ }); | ||
default: | ||
this.logger.error('Aggregation %s is not supported', view.aggregation); | ||
return null; | ||
this.logger.error(`Aggregation ${view.aggregation} is not supported`); | ||
} | ||
@@ -215,3 +221,3 @@ this.registry.registerMetric(metric); | ||
startServer: false, | ||
contentType: 'text/plain; text/plain; version=0.0.4; charset=utf-8', | ||
contentType: 'text/plain; text/plain; version=0.0.9; charset=utf-8', | ||
prefix: '' | ||
@@ -218,0 +224,0 @@ }; |
{ | ||
"name": "@opencensus/exporter-prometheus", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "OpenCensus Exporter Prometheus allows user to send collected stats to Prometheus", | ||
@@ -9,3 +9,3 @@ "main": "build/src/index.js", | ||
"scripts": { | ||
"test": "nyc mocha build/test/**/*.js", | ||
"test": "nyc ts-mocha -p ./tsconfig.json test/**/*.ts", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json", | ||
@@ -17,3 +17,2 @@ "clean": "rimraf build/*", | ||
"prepare": "npm run compile", | ||
"pretest": "npm run compile", | ||
"posttest": "npm run check" | ||
@@ -41,2 +40,13 @@ }, | ||
], | ||
"nyc": { | ||
"extension": [ | ||
".ts", | ||
".tsx" | ||
], | ||
"exclude": [ | ||
"**/*.d.ts", | ||
"build/**/**/*.js" | ||
], | ||
"all": true | ||
}, | ||
"publishConfig": { | ||
@@ -48,3 +58,2 @@ "access": "public" | ||
"@types/mocha": "^5.2.5", | ||
"@types/nock": "^9.1.3", | ||
"@types/node": "^10.12.12", | ||
@@ -54,11 +63,10 @@ "axios": "^0.18.0", | ||
"gts": "^0.9.0", | ||
"mocha": "^5.0.4", | ||
"ncp": "^2.0.0", | ||
"nock": "^10.0.0", | ||
"mocha": "^6.0.0", | ||
"nyc": "^13.0.0", | ||
"ts-node": "^7.0.1", | ||
"ts-mocha": "^6.0.0", | ||
"ts-node": "^8.0.0", | ||
"typescript": "~3.2.0" | ||
}, | ||
"dependencies": { | ||
"@opencensus/core": "^0.0.9", | ||
"@opencensus/core": "^0.0.10", | ||
"express": "^4.16.3", | ||
@@ -65,0 +73,0 @@ "prom-client": "^11.1.1" |
@@ -1,6 +0,8 @@ | ||
# OpenCensus Prometheus Exporter for Node.js | ||
# OpenCensus Prometheus Stats Exporter | ||
[![Gitter chat][gitter-image]][gitter-url] ![Node Version][node-img] [![NPM Published Version][npm-img]][npm-url] ![dependencies Status][dependencies-status] ![devDependencies Status][devdependencies-status] ![Apache License][license-image] | ||
The OpenCensus Prometheus Exporter allows the user to send collected stats with [OpenCensus Core](https://github.com/census-instrumentation/opencensus-core) to Prometheus. | ||
The OpenCensus Prometheus Stats Exporter allows the user to send collected stats with [OpenCensus Core](https://github.com/census-instrumentation/opencensus-core) to Prometheus. | ||
[Prometheus](https://prometheus.io/) is a monitoring system that collects metrics, by scraping exposed endpoints at regular intervals, evaluating rule expressions. It can also trigger alerts if certain conditions are met. For assistance setting up Prometheus, [Click here](https://opencensus.io/codelabs/prometheus/#0) for a guided codelab. | ||
This package is still at an early stage of development, and is subject to change. | ||
@@ -7,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29770
11
369
77
+ Added@opencensus/core@0.0.10(transitive)
+ Addedsemver@6.3.1(transitive)
- Removed@opencensus/core@0.0.9(transitive)
Updated@opencensus/core@^0.0.10