-
๐ฑ Iโm currently learning rust
-
โก Fun fact: I use the Dracula theme ๐ง๐ปโโ๏ธ
fschlag / javamelody-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEWJavaMelody Prometheus Exporter
License: Other
JavaMelody Prometheus Exporter
License: Other
๐ฑ Iโm currently learning rust
โก Fun fact: I use the Dracula theme ๐ง๐ปโโ๏ธ
Convert the custom registry PrometheusGaugesCollection.java
to prometheus custom collector as suggested by @brian-brazil in Pull #714.
Hi:
I debug the code and found that the method will make up of an error url .and
annotation the lines will be ok.
I test in my evrionment.
javamelody 1.75
javamelody-prometheus-exporter:1.3
and properties:
javamelody.url=http://host:port/monitoring
private String buildLastValueUrl(String baseUrl, String application, Set<JavaMelodyLastValueGraphs> graphs) {
StringBuilder sBuilder = new StringBuilder(baseUrl);
// if (!baseUrl.endsWith("/")) {
// sBuilder.append("/");
// }
sBuilder.append(LAST_VALUE_BASE_URL);
sBuilder.append(GRAPH_PARAMETER);
int size = graphs.size();
for (JavaMelodyLastValueGraphs graph : graphs) {
sBuilder.append(graph.getParameterName());
if (--size > 0) {
sBuilder.append(",");
}
}
if (application != null) {
sBuilder.append(APPLICATION_PARAMETER);
sBuilder.append(application);
}
return sBuilder.toString();
}
Hi,
Thanks for this javamelody-prometheus-exporter.
I did not know about it when a promotheus integration was added into javamelody itself, since v1.70 based on PRs by @slynn1324.
This integration is documented there:
https://github.com/javamelody/javamelody/wiki/UserGuideAdvanced#exposing-metrics-to-prometheus
I suggest to add a note about this integration as an alternative in README.md.
I will do a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.