Skip to main content

SwanMetrics

SWAN Metrics extension to add metrics for specific user actions, such as opening editors.

Requirements

  • jupyter_server
  • jupyter_events

Install

pip install swanmetrics

Observations

  • The /metrics route was added to direct the PrometheusMetricsHandler to the root url, so that Prometheus always scrapes the same endpoint, without having to access the /user/<username>/metrics endpoint every time. Otherwise, the username would have to be parsed each time Prometheus would scrape the metrics from the user pod.

Metadata

Release files for swanmetrics 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swanmetrics 1.0.9
File Size Uploaded
swanmetrics-1.0.9.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swanmetrics 1.0.9
File Interpreter ABI Platform
swanmetrics-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / swanmetrics-1.0.9.tar.gz

Download URL swanmetrics-1.0.9.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b06d8bb005bca9820c9c0bc307429d222a11141a5860ec1df426e96311f0a8a1
BLAKE2b-256 checksum
How to use checksums
ce4ad47d637727b44e152fca1817f109acd6176d35735577e194e3daedbc77d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / swanmetrics-1.0.9-py3-none-any.whl

Download URL swanmetrics-1.0.9-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9a8273a41915775bceab8318e77b2eade73915d8accdc5172f8e2bf8bef178b
BLAKE2b-256 checksum
How to use checksums
7267b70b9350d507020ab0606b87ce7460137b285da2cb162c39471d2c22b30e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.4

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page