Implement the exposition of application metrics #2
Labels
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-applications#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Via the micrometer library. It can be integrated flawlessly in spingboot applications and you can follow the same approach used for the openaire-exporter app
https://code-repo.d4science.org/D-Net/dnet-openaire-exporter
In the pom.xml file
relevant application properties
https://code-repo.d4science.org/D-Net/dnet-openaire-exporter/src/branch/master/src/main/resources/application.properties
A special metric needed to show in the prometheus dashboard the application version declared in the pom.xml file (micrometer_info)
https://code-repo.d4science.org/D-Net/dnet-openaire-exporter/src/branch/master/src/main/java/eu/dnetlib/DNetOpenaireExporterBeanFactory.java
Implemented, closing.