Skip to main content

lf-metric-emitter

GitHub release (latest SemVer) GitHub Workflow Status

This tool encapsulates the code needed to emit metrics to the Sasquatch InfluxDB stack. https://sasquatch.lsst.io/index.html

To utilize this tool, two environment variables must be set:

  1. BENCHMARK_ENV should be set to something consistent, for instance, github-ci, epic, local-desktop-1, etc.
  2. KAFKA_API_URL should be set to the full url. See the Sasquatch documentation for the specific URL.

You'll also need to manually create a Kafka topic to receive the metrics that are emitted. Again, see the Sasquatch documentation for instructions.

With the Kafka topic created, and the environmental variables, metrics can be emitted like so:

# result from a timing bench mark
my_result = 42.0

emitter = Emitter(namespace='lsst.lf',
                 name='ssppIncubator.bench',
                 module='PPApplyColourOffset',
                 benchmark_type:'runtime',
                 benchmark_unit:'s')


emitter.set_value(my_result)
emitter.emit()

Template

This project was automatically generated using the LINCC-Frameworks python-project-template.

For more information about the project template see the For more information about the project template see the documentation.

Metadata

Release files for lf-metric-emitter 0.0.3

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

Source distribution (sdist)

Source distribution for lf-metric-emitter 0.0.3
File Size Uploaded Provenance
lf-metric-emitter-0.0.3.tar.gz 12.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lf-metric-emitter 0.0.3
File Interpreter ABI Platform
lf_metric_emitter-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / lf-metric-emitter-0.0.3.tar.gz

Download URL lf-metric-emitter-0.0.3.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
acb40b8bdb05c0f8661590795fbce17bb4f26055e88b9dbbcb1bad47a6471059
BLAKE2b-256 checksum
How to use checksums
8d9e2b791de87782566af8430efa7c3eadd90501c21fd0761771fe214b90667f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / lf_metric_emitter-0.0.3-py3-none-any.whl

Download URL lf_metric_emitter-0.0.3-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f6f92f733cf73f638840179b888bfc984a762d5eb34ba85e25ae3d5db527615
BLAKE2b-256 checksum
How to use checksums
16679f08ac13f9aecd708873f5a19c1371af5a71dfd35873884b3d7e2d9a156a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Security for lf-metric-emitter 0.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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