n8n-nodes-opentelemetry-metrics
v0.1.0
Published
n8n community node for sending metrics via OpenTelemetry (OTLP)
Maintainers
Readme
n8n-nodes-opentelemetry-metrics
ส่ง metrics จาก n8n ไปยัง OTLP endpoint ผ่าน OpenTelemetry.
การติดตั้ง
npm install n8n-nodes-opentelemetry-metricsจากนั้นรีสตาร์ท n8n และเปิดใช้งาน Community Nodes เพื่อเพิ่ม node นี้ใน workflow ได้ทันที
การใช้งาน
- ตั้งค่า
OTLP Metrics Endpointเช่นhttp://collector:4318/v1/metrics - ตั้งค่า
Service Nameเพื่อเป็น resource attributeservice.name - เลือก
Instrument Type(Counter, UpDownCounter, Histogram) - ตั้งชื่อ
Instrument Nameและค่าValue - ใส่
Attributes(key/value) เพิ่มเติมสำหรับ metrics - ใส่
Headers(เช่น Authorization) สำหรับ OTLP HTTP Exporter - ปรับ
Export Interval (ms)หากต้องการ
ตัวอย่างการส่ง Counter
- Instrument Type: Counter
- Instrument Name:
event_count - Value:
1 - Attributes:
{ source: "n8n", workflow: "my-flow" }
License
MIT
