Skip to content

Latest commit

 

History

History
 
 

micrometer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Micrometer Template

Provided by: bonitoo.io

This template provides Micrometer dashboard

Micrometer provides a simple facade over the instrumentation clients for the most popular monitoring systems, allowing you to instrument your JVM-based application code without vendor lock-in. Think SLF4J, but for metrics.

Using Micrometer Java application can be set up to send data to InfluxDB. The InfluxDB dashboard provides beautiful visualizations of the collected results in time.

Example Dashboard Screenshot Example Dashboard Screenshot Example Dashboard Screenshot Example Dashboard Screenshot

Micrometer metrics available in this dashboard:

  • Request count - successful and failing
  • System load
  • JVM Memory - heap stats, thread count, garbage collection

Quick Install

InfluxDB UI

In the InfluxDB UI, go to Settings->Templates and enter this URL: https://raw.githubusercontent.com/influxdata/community-templates/master/micrometer/micrometer.yml

Influx CLI

If you have your InfluxDB credentials configured in the CLI, you can install this template with:

influx apply -u https://raw.githubusercontent.com/influxdata/community-templates/master/micrometer/micrometer.yml

Included Resources

The template consists of the following:

  • 1 Dashboard: JVM Micrometer

  • 1 Variable: bucket

  • Java project in the sample directory that can be used to generate sample data.

Setup Instructions

General instructions on using InfluxDB Templates can be found in the use a template document.

Import the template

influx apply --file ./micrometer.yml

Start with a sample data:

To generate sample data just configure and run Java project in sample directory.

To start with the sample project, follow these steps:

  1. Install Java
  2. Install InfluxDB 2.x on your localhost or sign up to Influx Cloud
  3. Configure java application by editing MetricsConfiguration.java. Change following properties to proper values: org, bucket, token and uri.
  4. Install dependencies using maven: mvn install
  5. Run ./sample/scrips/requests.sh to generate some traffic.

The dashboard should start presenting the results.

Customizations

n/a

Contact

Author: Tomas Vojtech, https://www.bonitoo.io

Github: @tvojtech