Open FlorianHockmann opened 6 years ago
@FlorianHockmann How do you monitor janusgraph with Prometheus JMX Exporter.I don't know how to config it
I think these steps are necessary to configure JanusGraph Server for Prometheus:
lib
directory of JanusGraph Server.---
ssl: false
JAVA_OPTIONS
; You need to add this line:-javaagent:${JANUS_HOME}/lib/jmx_prometheus_javaagent.jar=${JMX_EXPORTER_PORT}:${PATH_TO_EXPORTER_CONF}/exporter-config.yaml
jmxReporter
in the gremlin-server.yaml
:metrics: {
jmxReporter: {enabled: true}
# other optional reporters
}
Prometheus should then be able scrape metrics from the exporter.
My coworker recently created a repository for janusgraph prometheus monitoring using JMX prometheus exporter. It can be found here - https://github.com/gguttikonda/janusgraph-prometheus
@FlorianHockmann @koryk Thanks for your answers. It is very useful for me
JanusGraph has a chapter about monitoring that describes the different monitoring solutions supported by JanusGraph out of the box. While not directly supported, it is still possible without much effort to provide metrics from JanusGraph to Prometheus via JanusGraph's JMX Reporter and the Prometheus JMX Exporter.
Since Prometheus seems to be the most prominent metrics solution nowadays, it would be good to have that covered in the docs so not every user has to figure out the best approach on his own.
As a follow-up to this issue, providing a dashboard for Grafana could be a good idea but that should probably get its own issue to limit the scope of this issue.