New Community Plugin: API Monitoring and Observability
Tags: api, treblle, strapi
Published: 2023-05-23 13:11:45

With requests to APIs accounting for[ over 80% of the Internet’s traffic](https://www.akamai.com/our-thinking/the-state-of-the-internet), monitoring and having insights into the APIs we provide to the public and even internally has never been more crucial. 

[Treblle](https://www.treblle.com/) is a platform that is positioned to be seen as the Google Analytics for APIs and with this plugin, Strapi users have access to all the features of Treblle for the REST API they are exposing to their users.

## About this Plugin

The [Treblle plugin](https://market.strapi.io/plugins/@treblle-strapi) allows Strapi users to use Treblle - a lightweight SDK that helps engineering and product teams build, ship, and maintain REST-based APIs faster. 

With this plugin, Strapi users will have access to all the features of Treblle for the REST APIs that are being exposed. These features include:

- [API Monitoring and Observability](https://www.treblle.com/features/api-monitoring-observability)
- [Auto-generated API Docs](https://www.treblle.com/features/auto-generated-api-docs)
- [API Analytics](https://www.treblle.com/features/api-analytics)
- [Treblle API Score](https://www.treblle.com/features/api-quality-score)
- [API Lifecyle Collaboration](https://www.treblle.com/features/api-lifecycle)
- [Native Treblle Apps](https://www.treblle.com/features/native-apps)

And more new features that will be launched soon.

## Why We Built it?

![Treblle Plugin](https://treblle-github.s3.amazonaws.com/features.png)

Strapi is the leading open-source headless CMS, with many users exposing their CMS content over the provided Strapi REST API. 

Treblle was created to ensure that folks shipping or exposing REST APIs can monitor requests to their APIs in real-time, track API performance, and collaborate in the evolution of said APIs. 

With this plugin, the leading open-source headless CMS - Strapi - now seamlessly integrates with the mission control for REST APIs - Treblle.

## How it Works Under the Hood

The Treblle plugin works by exposing a Strapi [plugin middleware](https://docs.strapi.io/dev-docs/api/plugins/server-api#middlewares) that sends the requests and responses from the Strapi REST API to the Treblle dashboard. 

```jsx
// config/middlewares.js
module.exports = [
  'plugin::treblle.treblle',
]
```

To get started, you will need to create a [FREE account](https://app.treblle.com/signup) on Treblle, [create a new project](https://docs.treblle.com/en/dashboard/projects#creating-a-project) for your Strapi API on your Treblle Dashboard, obtain your [Treblle API Key](https://docs.treblle.com/en/dashboard#accessing-your-api-key) and [Project ID](https://docs.treblle.com/en/dashboard/projects#project-id) on your Treblle Dashboard, and follow the [setup instructions](https://docs.treblle.con/en/integrations/strapi) of the Treblle plugin.

## What’s Next?

This plugin works as seamlessly as possible but expects more improvements, like the integration experience improvements with this Plugin and the Strapi Admin panel. You can keep an eye on the [issues](https://github.com/Treblle/treblle-strapi/issues) of this plugin on GitHub. 

## How to Contribute?

The Treblle plugin is completely open-source, so anyone is welcome to contribute. You can contribute in any of the following ways:

- [Try out Treblle](https://docs.treblle.com/en/introduction#getting-started), and let us know ways to make Treblle better for a Strapi user.
- [Star the Treblle plugin repo](https://github.com/Treblle/treblle-strapi) if you find it useful.
- Join the [Strapi](https://discord.com/invite/strapi) and the [Treblle](https://treblle.com/chat) community on Discord and continue discussing this topic further or connect with more people.