Integrating Analytics for WSO2 API Manager 4.0.0 with Fluent Bit, Grafana Loki, Grafana Stack

1. Building the Publisher Agent

Go to and clone the repository and build the log-events.

2. Setting up Grafana Loki

Execute the below commands to setup the initial Grafana loki distribution.

3. Setting up FluentBit

There are two options to set this up.

4. Configuring Fluent Bit to pull and push the carbon logs to Grafan Loki

To setup Fluent Bit client for Loki first we need to build the plugin. Go to

5. Setting up Grafana Dashboard

  • Separating the Success and Failure Counts
  • Separating Illegal Attempts

6. References




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajanthan Eliyathamby 🇱🇰

Ajanthan Eliyathamby 🇱🇰

Associate Architect — Enterprise Integration | WSO2 Certified Solution Architect |