Skip to main content

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

  1. Install Prometheus Operator and Grafana.

  2. Enable serviceMonitor in TimeBase values.yaml. Enabled by default.

    # include this in TimeBase values.yaml to enable system metrics monitoring
    serviceMonitor:
    enabled: true
    namespace: monitoring
    interval: "30s"
    labels:
    monitoring: application
  3. JVM Actuator Grafana dashboard can be used for visualization.

Docker

  1. Install Prometheus and Grafana.
  2. Include the following JAVA_OPTS in your TimeBase dockerfile:
    • -DTimeBase.metrics.enable=true
    • -DTimeBase.metrics.gatherJvmMetrics=true
  3. 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.