Lines Matching refs:name

34 	LOG_DBG("Registering metric type=%d name=\"%s\"", metric->type, metric->name);  in prometheus_collector_register_metric()
48 const struct prometheus_counter *prometheus_get_counter_metric(const char *name) in prometheus_get_counter_metric() argument
51 LOG_DBG("entry->name: %s", entry->base.name); in prometheus_get_counter_metric()
53 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_counter_metric()
54 LOG_DBG("Counter found %s", entry->base.name); in prometheus_get_counter_metric()
59 LOG_DBG("%s %s not found", "Counter", name); in prometheus_get_counter_metric()
64 const struct prometheus_gauge *prometheus_get_gauge_metric(const char *name) in prometheus_get_gauge_metric() argument
67 LOG_DBG("entry->name: %s", entry->base.name); in prometheus_get_gauge_metric()
69 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_gauge_metric()
70 LOG_DBG("Counter found %s", entry->base.name); in prometheus_get_gauge_metric()
75 LOG_DBG("%s %s not found", "Gauge", name); in prometheus_get_gauge_metric()
80 const struct prometheus_histogram *prometheus_get_histogram_metric(const char *name) in prometheus_get_histogram_metric() argument
83 LOG_DBG("entry->name: %s", entry->base.name); in prometheus_get_histogram_metric()
85 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_histogram_metric()
86 LOG_DBG("Counter found %s", entry->base.name); in prometheus_get_histogram_metric()
91 LOG_DBG("%s %s not found", "Histogram", name); in prometheus_get_histogram_metric()
96 const struct prometheus_summary *prometheus_get_summary_metric(const char *name) in prometheus_get_summary_metric() argument
99 LOG_DBG("entry->name: %s", entry->base.name); in prometheus_get_summary_metric()
101 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_summary_metric()
102 LOG_DBG("Counter found %s", entry->base.name); in prometheus_get_summary_metric()
107 LOG_DBG("%s %s not found", "Summary", name); in prometheus_get_summary_metric()
113 const char *name) in prometheus_collector_get_metric() argument
120 if (collector == NULL || name == NULL) { in prometheus_collector_get_metric()
128 if (strncmp(metric->name, name, strlen(metric->name)) == 0) { in prometheus_collector_get_metric()
132 LOG_DBG("metric found: %s", metric->name); in prometheus_collector_get_metric()
140 LOG_ERR("Metric %s not found", name); in prometheus_collector_get_metric()