Aller au contenu principal

Metrics

Category: Monitoring
Node id: metrics

Collects, aggregates, and queries metrics including counters, gauges, histograms, summaries, and timers

What it does​

  • Counter metrics with increment/decrement operations
  • Gauge metrics for point-in-time values
  • Histogram metrics with percentile calculations (p50, p75, p90, p95, p99, p999)
  • Summary metrics with min, max, mean, and sum aggregation
  • Timer metrics for duration tracking with percentile breakdowns
  • Query metrics by name and type filters
  • Reset individual or all metrics
  • Label/tag support for metric dimensionality

Use cases​

  • Track pipeline execution counts and success rates
  • Monitor API response times with histogram percentiles
  • Record patient processing throughput as gauge metrics
  • Generate summary reports of all collected metrics
  • Instrument healthcare data pipeline performance

Runtime​

  • Performance tier: fast

Input ports​

NameTypeRequiredDescription
valueanyNoMetric value to record
durationanyNoDuration in milliseconds (timer operation)
labelsjsonNoLabels/tags for the metric

Output ports​

NameTypeRequiredDescription
resultjsonNoMetrics result with metrics map, summary, count, operation, processed_at, and duration_ms
successbooleanNoWhether the metrics operation succeeded

Settings​

Basic​

SettingNameTypeRequiredDefaultAllowed valuesDescription
OperationoperationenumNorecordrecord, increment, decrement, gauge, timer, histogram, summary, query, resetMetrics operation to perform
Metric Namemetric_namestringNoName of the metric
Metric Typemetric_typeenumNocountercounter, gauge, histogram, summary, timerType of metric
ValuevaluenumberNo0Static metric value

Advanced​

SettingNameTypeRequiredDefaultAllowed valuesDescription
DeltadeltanumberNo1Increment/decrement delta
DurationdurationnumberNo0Timer duration in milliseconds
LabelslabelsjsonNoMetric labels/tags
Name Filtername_filterstringNoFilter metrics by name (query operation)
Type Filtertype_filterstringNoFilter metrics by type (query operation)

Errors​

CodeDescription
MISSING_METRIC_NAMEmetric_name is required for record/increment/decrement/gauge/timer/histogram operations
UNSUPPORTED_OPERATIONOperation is not one of the supported metrics operations

Runtime notes​

  • Metrics are held in memory per node instance; they reset when the pipeline restarts
  • Histogram/summary operations auto-compute p50-p999 percentiles in the result
  • The 'summary' operation returns all registered metrics in one map keyed by metric name
  • Output always includes both 'result' (map) and 'success' (bool) top-level keys

See Build any workflow for how to put nodes together and Ports, types and data flow for how port types connect.

Quelque chose n'est pas clair ? Envoyez vos commentaires sur la documentation par courriel.