opentelemetry-metrics

n8n community node for sending metrics via OpenTelemetry (OTLP)

Package Information

Downloads: 27 weekly / 138 monthly
Latest Version: 0.1.0
Author: n8n OpenTelemetry Metrics

Documentation

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 attribute service.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

Discussion