Metadata-Version: 2.4
Name: fastpluggy-metrics
Version: 0.1.4
Summary: Metrics plugin for Fastpluggy
Author: FastPluggy Team
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: FastPluggy>=0.4.0
Requires-Dist: psutil
Requires-Dist: prometheus-client
Requires-Dist: prometheus-fastapi-instrumentator
Provides-Extra: tests
Requires-Dist: pytest>=7.0.0; extra == "tests"
Requires-Dist: pytest-cov>=4.0; extra == "tests"
Requires-Dist: psycopg2-binary; extra == "tests"
Requires-Dist: testcontainers[postgresql]>=3.7.0; extra == "tests"

# fastpluggy-metrics

![Metrics](https://img.shields.io/badge/FastPluggy-Metrics-blue)
[![Release](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/metrics/-/badges/release.svg)](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/metrics/-/releases)
[![Pipeline Status](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/metrics/badges/main/pipeline.svg?key_text=CI)](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/metrics/-/pipelines?ignore_skipped=true)
[![Coverage](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/metrics/badges/main/coverage.svg)](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/metrics/-/pipelines)

Prometheus metrics plugin for FastPluggy. Collects and exposes metrics from all plugins that implement the MetricsProvider capability.

## Installation

```bash
pip install fastpluggy-metrics
```

## Dependencies

- psutil
- prometheus-client
- prometheus-fastapi-instrumentator

## Features

- Prometheus `/metrics` endpoint
- Auto-discovers plugins with `MetricsProvider` capability
- System metrics (CPU, memory, disk) via psutil
- FastAPI request instrumentation
- Cardinality monitoring and warnings
- Dashboard with per-provider metric viewer

## Documentation

See [docs/README.md](docs/README.md) for detailed documentation.
