Lines Matching refs:metric
486 struct prometheus_metric *metric, in net_stats_prometheus_scrape() argument
501 if (metric->type == PROMETHEUS_COUNTER) { in net_stats_prometheus_scrape()
503 CONTAINER_OF(metric, struct prometheus_counter, base); in net_stats_prometheus_scrape()
513 } else if (metric->type == PROMETHEUS_GAUGE) { in net_stats_prometheus_scrape()
515 CONTAINER_OF(metric, struct prometheus_gauge, base); in net_stats_prometheus_scrape()
525 } else if (metric->type == PROMETHEUS_HISTOGRAM) { in net_stats_prometheus_scrape()
527 CONTAINER_OF(metric, struct prometheus_histogram, base); in net_stats_prometheus_scrape()
533 } else if (metric->type == PROMETHEUS_SUMMARY) { in net_stats_prometheus_scrape()
535 CONTAINER_OF(metric, struct prometheus_summary, base); in net_stats_prometheus_scrape()
542 strstr(metric->name, "_tx_time_summary") == 0) { in net_stats_prometheus_scrape()
552 strstr(metric->name, "_rx_time_summary") == 0) { in net_stats_prometheus_scrape()
563 NET_DBG("Unknown metric type %d", metric->type); in net_stats_prometheus_scrape()