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.
Note: We are also interested in finding out if you have a particular plugin that you would like to see for GraphQL metrics.
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 Java Metrics Plugin topic.
- The Ruby Metrics Plugin topic.
- The Strawberry Metrics Plugin topic.
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 Manual Metrics Call .
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:
- The Apollo Server Metrics Plugin topic.
- The Envelop Metrics Plugin topic.
- The Mesh Metrics Plugin topic.
- The Yoga Metrics Plugin topic.
- The Java Metrics Plugin topic.
- The Ruby Metrics Plugin topic.
- The Strawberry Metrics Plugin topic.
- About GraphQL Metrics.
- Get Started with GraphQL Metrics.
- Use the Edge Proxy for GraphQL Metrics.
- Build a Metrics Manual Call.
- Metrics Logging API.