tenant-aware-metrics

Community

Per-tenant metrics that scale.

Authormarquesfelip
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Monitors per-tenant SaaS metrics to detect noisy neighbors and capacity issues, enabling targeted capacity planning and fair resource sharing across tenants.

Core Features & Use Cases

  • Per-tenant metric registration with cardinality safeguards to keep Prometheus healthy.
  • HTTP middleware that emits per-tenant request counts, latency, and error signals while avoiding high-cardinality labels on latency metrics.
  • Quota usage metrics exported on a periodic schedule to support alerting on per-tenant exhaustion without label churn.
  • Scale-ready strategy: switch from Prometheus labels to per-tenant aggregates in PostgreSQL for large tenant bases (> 1000).
  • Grafana dashboards and alerting integration to drill down into a specific tenant and identify noisy neighbors.

Quick Start

Configure your SaaS app to emit per-tenant metrics and wire the middleware into your HTTP server.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tenant-aware-metrics
Download link: https://github.com/marquesfelip/agents-and-skills/archive/main.zip#tenant-aware-metrics

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.