Apollo Metrics

Export Apollo server request information to Prometheus through prom-client
Alternatives To Apollo Metrics
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Prometheus Basics1,413
2 years ago2mitGo
A beginner friendly introduction to prometheus 🔥
Minecraft Prometheus Exporter329
a month ago15mitJava
A Bukkit plugin which exports minecraft server stats to Prometheus
Dathttpd286
5 years ago18July 17, 201812mitJavaScript
Replaced by Homebase! See https://github.com/beakerbrowser/homebase.
Moproxy201
a month ago4mitRust
A transparent TCP to SOCKSv5/HTTP proxy on Linux written in Rust.
Nextcloud Exporter169
8 days ago16October 19, 20224mitGo
Prometheus exporter for Nextcloud servers.
Memcached_exporter15914 days ago13March 08, 20233apache-2.0Go
Exports metrics from memcached servers for consumption by Prometheus.
Nats Surveyor158
12 days ago21March 15, 202314apache-2.0Go
NATS Monitoring, Simplified.
Promql Langserver153
4 months ago11March 02, 202221apache-2.0Go
PromQL language server
Heplify Server147
4 months ago8October 26, 202217agpl-3.0Go
HEP Capture Server
Squid Exporter101
24 days ago10February 25, 20222mitGo
Squid Prometheus Exporter
Alternatives To Apollo Metrics
Select To Compare


Alternative Project Comparisons
Readme

Apollo Server Metrics

Build Status npm

Export Apollo server request information to Prometheus through prom-client.

Usage

import { ApolloServer } from "apollo-server-express";
import express from "express";
import { register } from "prom-client";
import createMetricsPlugin from "apollo-metrics";

async function start(): Promise<void> {
  try {
    const app = express();

    app.get("/metrics", (_, res) => res.send(register.metrics());
    const apolloMetricsPlugin = createMetricsPlugin(register);

    const server = new ApolloServer({
      plugins: [apolloMetricsPlugin],
      // IMPORTANT: tracing needs to be enabled to get resolver and request timings!
      tracing: true
    });
    server.applyMiddleware({ app, path: "/" });

    app.listen(5000, () => console.log(`🚀 Service started`));
  } catch (error) {
    console.error("Failed to start!", error);
  }
}

start();

License

MIT

Popular Prometheus Projects
Popular Server Projects
Popular Operations Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Typescript
Server
Metrics
Prometheus
Apollo