Metrics Plugins

The Stellate Request Logging API allows you to securely collect data that enables Stellate to identify cacheable traffic and their potential bandwidth and request savings. You can easily use Stellate GraphQL Metrics without proxying all your requests through Stellate. To achieve that you can push data about your GraphQL requests to our logging endpoint directly from your origin server.

Stellate offers several options for collecting GraphQL Metrics and Schema version information.

Plugins for JavaScript-based Servers

If you use Apollo Server, GraphQL Yoga, or GraphQL Mesh we have Javascript plugins for metrics collection. All of the Javascript metrics plugins take a fetch function as an argument. This enables the use of these plugins in any JavaScript environment. If you are running NodeJS, you can use the node-fetch package and in an edge environment (such as Cloudflare Workers) pass the global fetch function.

Plugins for other Server Languages

For Ruby or GraphQL Strawberry engineers, we offer both types of metrics plugins. To use these plugins, read the following topics listed under Integrations in the Navigation bar:

The easiest method to get GraphQL metrics is by using one of the Stellate metrics plugins. Our plugins simplify gathering the data for analytics.

Metrics Collection via HTTP

Stellate gives you the option of manually creating your own fetch call to get metrics. You can copy our boilerplate fetch call example and customize it. For information about using our example, read the section on plugin integration in Get Started with Metrics. To construct your own call read Build a Metrics Collection Call .

An image presenting table listing caching opportunities in Stellate analytics dashboard

Before you begin

Before you start using the plugins or creating a custom plugin, read the About GraphQL Metrics and Get Started with GraphQL Metrics topics for preliminary instructions on setting up metrics logging requests through the Stellate Dashboard.

Discover more For more information about plugins, read: