}
protected void sendMetrics(String context, int containers, int memory, int vcores) {
LOG.trace("Reporting resources in context {}: (containers, memory, vcores) = ({}, {}, {})",
context, containers, memory, vcores);
MetricsCollector collector = collectionService.getCollector(MetricsScope.SYSTEM, context, "0");
collector.gauge(METRIC_CONTAINERS, containers);
collector.gauge(METRIC_MEMORY_USAGE, memory);
collector.gauge(METRIC_VIRTUAL_CORE_USAGE, vcores);
}