Package mops.businesslogic.prometheus
Class PrometheusComponent
- java.lang.Object
-
- mops.businesslogic.prometheus.PrometheusComponent
-
@Component @Profile("!test") public class PrometheusComponent extends java.lang.Object
Prometheus integration.
-
-
Constructor Summary
Constructors Constructor Description PrometheusComponent(GroupService groupService, FileInfoService fileInfoService, DirectoryService directoryService, io.micrometer.core.instrument.MeterRegistry meterRegistry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
updateGauges()
Update all the gauges.
-
-
-
Constructor Detail
-
PrometheusComponent
public PrometheusComponent(GroupService groupService, FileInfoService fileInfoService, DirectoryService directoryService, io.micrometer.core.instrument.MeterRegistry meterRegistry) throws MopsException
Constructor.- Parameters:
groupService
- group servicefileInfoService
- file info servicedirectoryService
- directory servicemeterRegistry
- meter registry- Throws:
MopsException
-
-
Method Detail
-
updateGauges
@Scheduled(fixedRate=3600000L) public void updateGauges() throws MopsException
Update all the gauges.- Throws:
MopsException
-
-