1.0.1 • Published 10 months ago

@disha-148/nodejs v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

@instana-integration/nodejs

The Instana integration package used to support Node.js monitoring. Once you import this package into your Instana environment, you will be able to monitor Node.js runtime and the applications on various aspects by checking the dashboards, alerts, etc. included in this integration package.

Dashboards

Below are the dashboards that are currently supported by this integration package.

Dashboard TitleDescription
Node.js Runtime MetricsInstana custom dashboard that displays runtime metrics for Node.js application

Node.js Runtime Metrics

Semantic Conventions for Node.js Runtime Metrics

The Node.js runtime metrics are obtained by OpenTelemetry auto-instrumentation:

const {RuntimeNodeInstrumentation} = require('@opentelemetry/instrumentation-runtime-node')

const sdk = new NodeSDK({
  ...
  instrumentations: [
    new RuntimeNodeInstrumentation({
      monitoringPrecision: 5000,
    })
  ],
  ...
});

sdk.start()

Below are the Node.js runtime metrics that are currently supported by this integration package.

Metrics NameDescriptionUnit
v8js.gc.durationGarbage collection duration by kind, one of major, minor, incremental or weakcb.s
memory.heap.limitTotal heap memory size pre-allocated.Byte
memory.heap.usedHeap memory size allocated.Byte
memory.heap.space.available_sizeHeap space available size.Byte
memory.heap.space.physical_sizeCommitted size of a heap space.Byte
eventloop.delay.minEvent loop minimum delay.s
eventloop.delay.maxEvent loop maximum delay.s
eventloop.delay.meanEvent loop mean delay.s
eventloop.delay.stddevEvent loop standard deviation delay.s

Resource Attributes for Node.js Application

Below are the resource attributes that are currently supported by this integration package.

Attribute KeyTypeDescription
service.namestringThis attribute is used to describe the entity name.
service.instance.idstringThis attribute is used to describe the entity ID of the current object.

Installation and Usage

With Instana CLI for integration package management, you can manage the lifecycle of this package such as downloading the package and importing it into Instana.

Downloading the package:

$ stanctl-integration download --package @instana-integration/nodejs

Importing the package into Instana:

$ stanctl-integration import --package @instana-integration/nodejs \
  --server $INSTANA_SERVER \
  --token $API_TOKEN \
  --set servicename=$SERVICE_NAME \
  --set serviceinstanceid=$SERVICE_INSTANCE_ID
  • INSTANA_SERVER: This is the base URL of a tenant unit, e.g. https://test-example.instana.io. This is the same URL that is used to access the Instana user interface.
  • API_TOKEN: Requests against the Instana API require valid API tokens. The API token can be generated via the Instana user interface. For more information, please refers to Instana documentation.
  • SERVICE_NAME: Logical name of the service.
  • SERVICE_INSTANCE_ID: The string ID of the service instance. The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service).
1.0.1

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago