class PrometheusEnricher extends BaseEnricher {

    @Override
    public void create(PlatformMode platformMode, KubernetesListBuilder builder) {
        builder.accept(new TypedVisitor<ServiceBuilder>() {
            @Override
            public void visit(ServiceBuilder serviceBuilder) {
                String prometheusPort = findPrometheusPort();
                if (StringUtils.isNotBlank(prometheusPort)) {
                    log.verbose("Add prometheus.io annotations: %s=%s, %s=%s",
                            ANNOTATION_PROMETHEUS_SCRAPE, "true",
                            ANNOTATION_PROMETHEUS_PORT, prometheusPort);

                    Map<String, String> annotations = new HashMap<>();
                    MapUtil.putIfAbsent(annotations, ANNOTATION_PROMETHEUS_PORT, prometheusPort);
                    MapUtil.putIfAbsent(annotations, ANNOTATION_PROMETHEUS_SCRAPE, "true");
                    serviceBuilder.editMetadata().addToAnnotations(annotations).endMetadata();
                }
            }
        });
    }

    public  PrometheusEnricher(MavenEnricherContext buildContext);

}