Lines Matching full:collector
398 #define CTLSTAT_PROMETHEUS_LOOP(field, collector) \ argument
410 if (strcmp(collector, "port") == 0 && \
418 collector, collector, \
424 #define CTLSTAT_PROMETHEUS_TIMELOOP(field, collector) \ argument
438 if (strcmp(collector, "port") == 0 && \
448 collector, collector, \
555 const char *collector; in ctlstat_prometheus() local
590 collector = ports ? "port" : "lun"; in ctlstat_prometheus()
593 "# TYPE iscsi_%s_bytes counter\n", collector, collector); in ctlstat_prometheus()
594 CTLSTAT_PROMETHEUS_LOOP(bytes, collector); in ctlstat_prometheus()
596 "# TYPE iscsi_%s_dmas counter\n", collector, collector); in ctlstat_prometheus()
597 CTLSTAT_PROMETHEUS_LOOP(dmas, collector); in ctlstat_prometheus()
599 "# TYPE iscsi_%s_operations counter\n", collector, collector); in ctlstat_prometheus()
600 CTLSTAT_PROMETHEUS_LOOP(operations, collector); in ctlstat_prometheus()
602 "# TYPE iscsi_%s_time counter\n", collector, collector); in ctlstat_prometheus()
603 CTLSTAT_PROMETHEUS_TIMELOOP(time, collector); in ctlstat_prometheus()
605 "# TYPE iscsi_%s_dma_time counter\n", collector, collector); in ctlstat_prometheus()
606 CTLSTAT_PROMETHEUS_TIMELOOP(dma_time, collector); in ctlstat_prometheus()