client_java icon indicating copy to clipboard operation
client_java copied to clipboard

no found build() method

Open wangsonggogo opened this issue 2 years ago • 1 comments
trafficstars

image

    <dependency>
        <groupId>io.prometheus</groupId>
        <artifactId>simpleclient</artifactId>
        <version>0.16.0</version>
    </dependency>
    <!-- Hotspot JVM metrics-->
    <dependency>
        <groupId>io.prometheus</groupId>
        <artifactId>simpleclient_hotspot</artifactId>
        <version>0.16.0</version>
    </dependency>
    <!-- Exposition HTTPServer-->
    <dependency>
        <groupId>io.prometheus</groupId>
        <artifactId>simpleclient_httpserver</artifactId>
        <version>0.16.0</version>
    </dependency>
    <!-- Pushgateway exposition-->
    <dependency>
        <groupId>io.prometheus</groupId>
        <artifactId>simpleclient_pushgateway</artifactId>
        <version>0.16.0</version>
    </dependency>

wangsonggogo avatar Jul 07 '23 09:07 wangsonggogo

I suspect the Counter is from another library. Try with the full package name, like io.prometheus.client.Counter.build().

fstab avatar Jul 07 '23 10:07 fstab