@warnyin/n8n-nodes-opentelemetry-metrics
v0.1.7
Published
n8n community node for sending metrics via OpenTelemetry (OTLP)
Readme
OpenTelemetry Metrics for n8n
Send metrics from n8n to an OTLP endpoint using OpenTelemetry. Supports Counter, UpDownCounter, and Histogram instruments with resource and metric attributes.
Badges
Install
npm install @warnyin/n8n-nodes-opentelemetry-metricsRestart n8n and enable Community Nodes. The node will be available to add in your workflow.
Usage
- Set
OTLP Metrics Endpoint, e.g.http://collector:4318/v1/metrics - Set
Service Name(used as resource attributeservice.name) - Choose
Instrument Type(Counter, UpDownCounter, Histogram) - Provide
Instrument Nameand metricValue - Add metric
Attributes(key/value) - Add
Headersfor the OTLP HTTP exporter (e.g.,Authorization) - Optionally adjust
Export Interval (ms)
Example
- Instrument Type: Counter
- Instrument Name:
event_count - Value:
1 - Attributes:
{ source: "n8n", workflow: "my-flow" }
Configuration Options
host: OTLP HTTP endpoint (default:http://localhost:4318/v1/metrics)serviceName: Resource attributeservice.nameresourceAttributes: Additional resource attributesmeterName: Meter name (default:n8n)instrumentType:counter | upDownCounter | histograminstrumentName: Metric instrument namevalue: Numeric value to add/recordattributes: Key/value metric attributesheaders: HTTP headers for OTLP exporter (e.g.,Authorization: Bearer ...)exportIntervalMillis: Periodic export interval in milliseconds
Development
- Build:
npm run build - Local package tarball:
npm pack
Contributing
PRs and issues are welcome. Please open an issue for bugs or feature requests.
License
MIT License. See LICENSE file for details.
