Class PrometheusComponent


  • @Component
    @Profile("!test")
    public class PrometheusComponent
    extends java.lang.Object
    Prometheus integration.
    • Constructor Detail

      • PrometheusComponent

        public PrometheusComponent​(GroupService groupService,
                                   FileInfoService fileInfoService,
                                   DirectoryService directoryService,
                                   io.micrometer.core.instrument.MeterRegistry meterRegistry)
                            throws MopsException
        Constructor.
        Parameters:
        groupService - group service
        fileInfoService - file info service
        directoryService - directory service
        meterRegistry - meter registry
        Throws:
        MopsException
    • Method Detail

      • updateGauges

        @Scheduled(fixedRate=3600000L)
        public void updateGauges()
                          throws MopsException
        Update all the gauges.
        Throws:
        MopsException