All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fizzed.prometheus.ninja.NinjaPrometheusModule Maven / Gradle / Ivy

There is a newer version: 0.0.4
Show newest version
package com.fizzed.prometheus.ninja;

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.OptionalBinder;
import io.prometheus.client.CollectorRegistry;

public class NinjaPrometheusModule extends AbstractModule {

    @Override
    protected void configure() {
        OptionalBinder.newOptionalBinder(binder(), CollectorRegistry.class)
            .setDefault()
            .toInstance(CollectorRegistry.defaultRegistry);
        bind(PrometheusExporter.class);
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy