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)
    
  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.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

pyspark_prometheus-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyspark_prometheus-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 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.0.tar.gz
Algorithm Hash digest
SHA256 1a0b0a189989215df64529927a4192fb66846710aadfcc08c462e815bd304f28
MD5 faab14146d737f5f3cd92de7e68c9c41
BLAKE2b-256 b77660a386be0d8484dd4c7e48511ea8aa33342b278208208c5bc18d8644ba9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyspark_prometheus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dbd6864c093a50b8e993dc9c153e1ea1d9e54cee519f401047b2d2d87f3bcf6
MD5 771fcb3562a1ad82c143788f9e431295
BLAKE2b-256 05d587e0a577319f775948498eebb8ca66187d9f437e36198613c8642a291f21

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