Grafana
System Metrics
System metrics are collected by Prometheus agent (from path: /tb/metrics'
) and can be visualized on Grafana dashboards. In this case, Grafana takes data directly from Prometheus database.
Kubernetes
Install Prometheus Operator and Grafana.
Enable
serviceMonitor
in TimeBasevalues.yaml
. Enabled by default.# include this in TimeBase values.yaml to enable system metrics monitoring
serviceMonitor:
enabled: true
namespace: monitoring
interval: "30s"
labels:
monitoring: applicationJVM Actuator Grafana dashboard can be used for visualization.
Docker
- Install Prometheus and Grafana.
- Include the following
JAVA_OPTS
in your TimeBase dockerfile:-DTimeBase.metrics.enable=true
-DTimeBase.metrics.gatherJvmMetrics=true
- JVM Actuator Grafana dashboard can be used for visualization.
TimeBase Data
TimeBase streams data can be visualized in Grafana using a TimeBase plugin. In this case, Grafana takes TimeBase as a datasource and not Prometheus. In TimeBase Overview dashboard you can view TimeBase streams count and information about them, available functions, classes and data types from selected streams and more. You can run QQL queries to extract any custom data from TimeBase.
info
Refer to Plugin Open Source Repository to download the TimeBase plugin for Grafana and read tutorials.