<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->
<layer-spec xmlns="urn:jboss:galleon:layer-spec:2.0" name="micrometer">
    <props>
        <prop name="org.wildfly.category" value="Monitoring"/>
        <prop name="org.wildfly.description" value="Support for Micrometer."/>
        <prop name="org.wildfly.rule.add-on-depends-on" value="only:cdi"/>
        <prop name="org.wildfly.rule.add-on" value="observability,micrometer"/>
        <prop name="org.wildfly.rule.add-on-description" value="Support for Micrometer."/>
        <prop name="org.wildfly.rule.annotations" value="io.micrometer.core.annotation"/>
        <prop name="org.wildfly.rule.class" value="io.micrometer.core.*"/>
    </props>
    <dependencies>
        <layer name="cdi"/>
    </dependencies>
    <feature-group name="micrometer"/>

    <packages>
        <!-- If a non-default-only installation, install the io.prometheus module
             in case the registry=prometheus resource is wanted. -->
        <package name="io.prometheus" valid-for-stability="community" optional="true"/>
    </packages>
</layer-spec>
