• Stars
    star
    272
  • Rank 151,235 (Top 3 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 6 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Prometheus integration for Starlette.

Starlette Prometheus

Build Status codecov Package Version PyPI Version

Introduction

Prometheus integration for Starlette.

Requirements

  • Python 3.6+
  • Starlette 0.9+

Installation

$ pip install starlette-prometheus

Usage

A complete example that exposes prometheus metrics endpoint under /metrics/ path.

from starlette.applications import Starlette
from starlette_prometheus import metrics, PrometheusMiddleware

app = Starlette()

app.add_middleware(PrometheusMiddleware)
app.add_route("/metrics/", metrics)

Metrics for paths that do not match any Starlette route can be filtered by passing filter_unhandled_paths=True argument to add_middleware method. Note that not turning on this filtering can lead to unbounded memory use when lots of different routes are called.

Contributing

This project is absolutely open to contributions so if you have a nice idea, create an issue to let the community discuss it.

More Repositories

1

flama

🔥 Fire up your API
Python
213
star
2

health-check

Health Check is an application that provides an API to check the health health_check of some parts and some utilities like ping requests. This application can works as standalone or included in a Django project.
Python
31
star
3

django-status

Django Status is a application for Django projects that provides an API to check the status of some parts and some utilities like ping requests.
Python
17
star
4

apistar-crud

API Star CRUD resources
JavaScript
14
star
5

apistar-sqlalchemy

SQLAlchemy integration for API Star
Python
13
star
6

warcraftlogs

WarcraftLogs API client
Python
9
star
7

haystack-elasticsearch

Add elasticsearch specific features to haystack
Python
8
star
8

clinner

Command Line Interface builder that helps creating an entry point for your application.
Python
8
star
9

django-audit-tools

Django application that provides a set of tools for auditing requests and models and improve logging
Python
8
star
10

barrenero

Barrenero is a set of tools for effective mining crypto currencies.
Python
7
star
11

django-numpy

Application for Django projects that adds some utilities and integration tools with Numpy.
Python
6
star
12

speech

Repository to store speech materials.
Jupyter Notebook
5
star
13

task-dispatcher

Library that provides a system to generate tasks producers and consumers with ease.
Python
3
star
14

management-tools

A set of tools to improve efficiency in team management tasks
Python
3
star
15

performance-tools

Some tools to make performance analysis and improvements.
Python
2
star
16

apistar-pagination

Pagination tools for API Star
Python
1
star
17

apistar-peewee-orm

Peewee integration for API Star
Python
1
star
18

cookiecutter-python-app

Cookiecutter template for simple python application
Python
1
star
19

flama-site

Flama Website
TypeScript
1
star
20

ci-builder

Docker image to use as GitHub Actions builder
Python
1
star
21

test-academy-19-11

Jupyter Notebook
1
star
22

cookiecutter-django-graphql-api

Cookiecutter template for GraphQL API based on Django.
Python
1
star
23

cookiecutter-python-package

Cookiecutter template for python packages.
Python
1
star