Skip to content

Commit d7c5108

Browse files
committed
chore(prom-client) change version and fix README.md
1 parent 046072e commit d7c5108

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/node/instrumentation-runtime-node/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const prometheusExporter = new PrometheusExporter({
2626
const sdk = new NodeSDK({
2727
metricReader: prometheusExporter,
2828
instrumentations: [new RuntimeNodeInstrumentation({
29-
eventLoopUtilizationMeasurementInterval: 5000,
29+
monitoringPrecision: 5000,
3030
})],
3131
});
3232

@@ -44,7 +44,7 @@ Go to [`localhost:9464/metrics`](http://localhost:9464/metrics), and you should
4444
nodejs_performance_event_loop_utilization 0.010140079547955264
4545
```
4646

47-
> Metrics will only be exported after it has collected two ELU readings (at least approximately `RuntimeNodeInstrumentationConfig.eventLoopUtilizationMeasurementInterval` milliseconds after initialization). Otherwise, you may see:
47+
> Metrics will only be exported after it has collected two ELU readings (at least approximately `RuntimeNodeInstrumentationConfig.monitoringPrecision` milliseconds after initialization). Otherwise, you may see:
4848
>
4949
> ```txt
5050
> # no registered metrics
@@ -56,7 +56,7 @@ nodejs_performance_event_loop_utilization 0.010140079547955264
5656
5757
| name | type | unit | default | description |
5858
|---|---|---|---|---|
59-
| [`eventLoopUtilizationMeasurementInterval`](./src/types.ts#L25) | `int` | millisecond | `5000` | The approximate number of milliseconds for which to calculate event loop utilization averages. A larger value will result in more accurate averages at the expense of less granular data. Should be set to below the scrape interval of your metrics collector to avoid duplicated data points. |
59+
| [`monitoringPrecision`](./src/types.ts#L25) | `int` | millisecond | `5000` | The approximate number of milliseconds for which to calculate event loop utilization averages. A larger value will result in more accurate averages at the expense of less granular data. Should be set to below the scrape interval of your metrics collector to avoid duplicated data points. |
6060
6161
## Supported Node.js versions
6262

plugins/node/instrumentation-runtime-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opentelemetry/instrumentation-runtime-node",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "OpenTelemetry Node.js Performance measurement API automatic instrumentation package",
55
"main": "build/src/index.js",
66
"types": "build/src/index.d.ts",

0 commit comments

Comments
 (0)