protected Monitoring getMonitoringService() {
        AbstractConfigProducerRoot root = getRoot();
        Admin admin = (root == null? null : root.getAdmin());
        if (admin == null) {
            return null;
        }
        if (admin.getMonitoring() != null) {
            return admin.getMonitoring();
        }
        return null;
    }
Returns a monitoring service if configured, null otherwise
config-model/src/main/java/com/yahoo/config/model/producer/AnyConfigProducer.java