Getting Started

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Dealing with app telemetry can require a complex setup. Luckily, Grafana allows you to have a very simple setup to preview your app telemetry. It will store your data and create the necessary visualization. You can find other options, but many focused on Traces only. Grafana supports all three: Traces, Metrics, and Logs.

You’re going to start off by creating a free account on Grafana.com.

You can use Google account, Github, Microsoft or Amazon to link it directly with grafana.

Once you do so, you’ll be asked to create a Grafana Stack which would be your own portal.

It can take a couple of minutes when you open it for the first time.

Once it’s open, go to the “Home” page from the side menu. This will take you to a Getting Started Guide page.

From the list of options, Choose “OpenTelemetry”

This will take you to the OpenTelemetry Guide page for OpenTelemetry integration.

Under “Choose your setup” select “Quickstart”, then select “Java” as an example.

Enter the name of the app that you’ll connect to Grafana. Type “themet” then tap on the Create token button.

This will bring you to the setup you need to connect to Grafana. Under the “Add automatic instrumentation” section, you’ll need two things:

  • The authentication token from the OTEL_EXPORTER_OTLP_HEADERS parameter (hidden in the screenshot).
  • The URL for your Grafana stack from the OTEL_EXPORTER_OTLP_ENDPOINT parameter.
"Authentication=Basic [YOUR_TOKEN]"

Store these values , as you’ll be using them in the whole module. Then, press the Continue button to finish. You should see a confirmation message saying “You’re all set!”.

See forum comments
Download course materials from Github
Previous: Introduction Next: Integrating OpenTelemetry