Subversion Repositories SmartDukaan

Rev

Rev 37395 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37395 Rev 37472
Line 6... Line 6...
6
import io.micrometer.core.instrument.Gauge;
6
import io.micrometer.core.instrument.Gauge;
7
import io.micrometer.core.instrument.MeterRegistry;
7
import io.micrometer.core.instrument.MeterRegistry;
8
import org.springframework.stereotype.Component;
8
import org.springframework.stereotype.Component;
9
 
9
 
10
/**
10
/**
11
 * Publishes the two balance signals that used to be written to
11
 * Publishes the two prepaid balance signals -- SMS credits and the ThinkWalnut
12
 * /var/log/services/nagios-Monitoring.properties for an NRPE check.
12
 * recharge wallet -- on /actuator/prometheus, which alloy scrapes off
-
 
13
 * 127.0.0.1:8081 on this host.
13
 *
14
 *
14
 * The Nagios transport is gone — there is no Nagios server, and the NRPE
-
 
15
 * daemons have been removed from every host — but the signals themselves are
-
 
16
 * worth watching, so they are exposed on /actuator/prometheus instead.
-
 
17
 *
-
 
18
 * Values are pushed in by {@link NagiosMonitorTasks}; -1 means "not read yet"
15
 * Values are pushed in by {@link BalanceMonitorTasks}; -1 means "not read yet"
19
 * so a scrape before the first run is distinguishable from a genuine zero
16
 * so a scrape before the first run is distinguishable from a genuine zero
20
 * balance.
17
 * balance.
21
 */
18
 */
22
@Component
19
@Component
23
public class BalanceGauges {
20
public class BalanceGauges {