Skip to main content

No project description provided

Project description

PySpark Prometheus Integration

This project provides a seamless integration between PySpark and Prometheus for monitoring Spark Structured Streaming applications.

Features

  • Collects metrics from PySpark Streaming Queries
  • Exposes metrics in Prometheus format
  • Easy integration with existing PySpark applications

Installation

To install the required dependencies, run:

pip install -r requirements.txt

Usage

  1. Import the necessary modules in your PySpark application:

    from pyspark_prometheus import with_prometheus_metrics
    
  2. Initialize the Prometheus metrics:

    spark = SparkSession.builder.master("local").appName("MySparkApp").getOrCreate()
    spark = with_prometheus_metrics(spark, 'http://localhost:9091')
    
  3. Start your PySpark job as usual. Metrics will be collected and exposed automatically.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or support, please open an issue in the repository.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspark_prometheus-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pyspark_prometheus-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pyspark_prometheus-0.1.1.tar.gz.

File metadata

  • Download URL: pyspark_prometheus-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.5 Darwin/23.2.0

File hashes

Hashes for pyspark_prometheus-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5b9869d06c706368559de9643e6596eaed1548023e0f8c0d47a7821c2038bb2e
MD5 7607a1e39ded7158b5c9f42e0cc9fac5
BLAKE2b-256 5bd1d96658cf34f528670c13a1d3ef51d1b9768118f43b5da00a785551423dc6

See more details on using hashes here.

File details

Details for the file pyspark_prometheus-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyspark_prometheus-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45d89d366d4a18863109e136dbb5988f32c6dd5202f61b0402c7be18ecb981a6
MD5 15851fd3abb8fcc2d17f4a96e0f3966d
BLAKE2b-256 c5159b811a56f01b2213ec82f809b8b47d5c8d1d507ee41326e607e0ae257efe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page