Skip to content

movio/spark-sql-prometheus-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spark-sql-prometheus-exporter

Build Status

Run a spark-sql query and export results to Prometheus Pushgateway.

Usage:

spark-submit \
  --class co.movio.sparksqlprometheusexporter.Main
  spark-sql-prometheus-exporter.jar \
  --pushgateway https://url-to-pushgateway/ \
  --job member_dataset_exporter \
  --metric 'member_count=SELECT COUNT(*) AS value FROM parquet.`hdfs:///etl/members`' \
  --metric 'members_by_country=SELECT country, COUNT(*) AS value FROM parquet.`hdfs:///etl/members` GROUP BY country'

About

Run spark.sql queries and push results to Pushgateway.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages