public void add(String name, MetricValue value) { add(new Metric(new SimpleMetricName(name, null), value)); } public void add(MetricName name, MetricValue value) {
protected void fetchOverHttp(HttpClient httpClient, HttpContext httpContext) throws Exception { values = new Metrics(); final List<HttpUriRequest> httpRequests = setupRequests(); for (final HttpUriRequest httpRequest : httpRequests) { fetchOverHttp(httpClient, httpContext, httpRequest); } }
public void add(String name, long timestamp, Object value) { add(new Metric(new SimpleMetricName(name, null), new MetricValue(timestamp, value))); }
protected Metrics readAllAndSelect(final BulkMetricsReader reader) { final Metrics result = new Metrics(); final Metrics metrics = reader.readAllMetrics(); for (final Metric entry : metrics) { final SelectedMetric metric = selectMetric(entry.getName()); if (metric != null) { result.add(metric.getName(), entry.getName().getDescription(), entry.getValue()); } } return result; }
public void add(MetricName name, long timestamp, Object value) { add(new Metric(name, new MetricValue(timestamp, value))); }
@Override public void open() throws MetricReadException { final long start = System.currentTimeMillis(); try { fetchOverHttp(httpClient, httpContext); } catch (final Exception e) { throw new OpenMetricsReaderException(e); } final long end = System.currentTimeMillis(); timingsLogger.debug("Discovered {} metrics in {} ms", values.size(), end - start); }
default Iterable<MetricName> readNames() { return readAllMetrics().getNames(); }
protected Metrics readAllAndSelect(final BulkMetricsReader reader) { final Metrics result = new Metrics(); final Metrics metrics = reader.readAllMetrics(); for (final Metric entry : metrics) { final SelectedMetric metric = selectMetric(entry.getName()); if (metric != null) { result.add(metric.getName(), entry.getName().getDescription(), entry.getValue()); } } return result; }
public void add(String name, String description, long timestamp, Object value) { add(new Metric(new SimpleMetricName(name, description), new MetricValue(timestamp, value))); }
public void add(String name, MetricValue value) { add(new Metric(new SimpleMetricName(name, null), value)); } public void add(MetricName name, MetricValue value) {
public void add(MetricName name, long timestamp, Object value) { add(new Metric(name, new MetricValue(timestamp, value))); }
protected void fetchOverHttp(HttpClient httpClient, HttpContext httpContext) throws Exception { values = new Metrics(); final List<HttpUriRequest> httpRequests = setupRequests(); for (final HttpUriRequest httpRequest : httpRequests) { fetchOverHttp(httpClient, httpContext, httpRequest); } }
default Iterable<MetricName> readNames() { return readAllMetrics().getNames(); }
public void add(String name, String description, long timestamp, Object value) { add(new Metric(new SimpleMetricName(name, description), new MetricValue(timestamp, value))); }
public void add(String name, String description, MetricValue value) { add(new Metric(new SimpleMetricName(name, description), value)); }
public void add(String name, long timestamp, Object value) { add(new Metric(new SimpleMetricName(name, null), new MetricValue(timestamp, value))); }
public void add(String name, String description, MetricValue value) { add(new Metric(new SimpleMetricName(name, description), value)); }