Skip to content

Commit 9d873b7

Browse files
authored
FDP-3224: Add prometheus actuator to IEC60870 simulator (#1605)
* FDP-3224: Add prometheus actuator to IEC60870 simulator Signed-off-by: Jelle Hoffman <jelle.hoffman@alliander.com> * FDP-3224: Newline Signed-off-by: Jelle Hoffman <jelle.hoffman@alliander.com> --------- Signed-off-by: Jelle Hoffman <jelle.hoffman@alliander.com>
1 parent c8b8740 commit 9d873b7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

osgp/protocol-adapter-iec60870/osgp-protocol-simulator-iec60870/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ SPDX-License-Identifier: Apache-2.0
8484
<groupId>org.springframework.boot</groupId>
8585
<artifactId>spring-boot-starter-actuator</artifactId>
8686
</dependency>
87+
<dependency>
88+
<groupId>io.micrometer</groupId>
89+
<artifactId>micrometer-registry-prometheus</artifactId>
90+
</dependency>
8791

8892
<dependency>
8993
<groupId>org.springframework.boot</groupId>

osgp/protocol-adapter-iec60870/osgp-protocol-simulator-iec60870/src/main/resources/application-default_controlled_station.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ general_interrogation_element_values=10.0,20.5
33

44
job.asdu.generator.enabled=false
55
job.asdu.generator.cron=0 0/1 * * * ?
6-
7-
management.endpoints.web.exposure.include=health

osgp/protocol-adapter-iec60870/osgp-protocol-simulator-iec60870/src/main/resources/application-light_measurement_device.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ general_interrogation_element_values=false
44
job.asdu.generator.time.zone=Europe/Paris
55
job.asdu.generator.enabled=true
66
job.asdu.generator.cron=0 0/1 * * * ?
7-
8-
management.endpoints.web.exposure.include=health
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#spring.profiles.active=default_controlled_station
22
spring.profiles.default=light_measurement_device
33

4-
management.endpoints.web.exposure.include=health
4+
management.server.port=9404
5+
management.endpoints.web.exposure.include=health,prometheus
6+
management.endpoint.health.show-details=always
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
iec60870.simulator.connection.timeout=5000
22
iec60870.simulator.sendEndOfInitialization=true
33
iec60870.simulator.port=2404
4-
5-
management.endpoints.web.exposure.include=health

0 commit comments

Comments
 (0)