Created
March 28, 2019 19:44
-
-
Save noemi-dresden/bf6b68fd326d60b8515bf108c577a196 to your computer and use it in GitHub Desktop.
Complete compose file for monitoring spark on prometheus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.1" | |
| services: | |
| spark-master: | |
| image: bde2020/spark-master:2.4.0-hadoop2.7 | |
| container_name: spark-master | |
| ports: | |
| - "8080:8080" | |
| - "7077:7077" | |
| environment: | |
| - INIT_DAEMON_STEP=setup_spark | |
| spark-worker-1: | |
| image: bde2020/spark-worker:2.4.0-hadoop2.7 | |
| container_name: spark-worker-1 | |
| depends_on: | |
| - spark-master | |
| ports: | |
| - "8081:8081" | |
| environment: | |
| - "SPARK_MASTER=spark://spark-master:7077" | |
| spark-worker-2: | |
| image: bde2020/spark-worker:2.4.0-hadoop2.7 | |
| container_name: spark-worker-2 | |
| depends_on: | |
| - spark-master | |
| ports: | |
| - "8082:8081" | |
| volumes: | |
| - ${PWD}/spark/metrics.properties:/spark/conf/metrics.properties | |
| environment: | |
| - "SPARK_MASTER=spark://spark-master:7077" | |
| graphite_exporter: | |
| image: prom/graphite-exporter | |
| command: "--graphite.mapping-config=/tmp/graphite_mapping.conf" | |
| container_name: graphite_exporter | |
| volumes: | |
| - ${PWD}/graphite_exporter/graphite_mapping.conf:/tmp/graphite_mapping.conf | |
| ports: | |
| - "9108:9108" | |
| - "9109:9109" | |
| - "9109:9109/udp" | |
| prometheus: | |
| image: prom/prometheus | |
| container_name: prometheus | |
| volumes: | |
| - ${PWD}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml | |
| ports: | |
| - "9090:9090" | |
| links: | |
| - graphite_exporter | |
| grafana: | |
| image: grafana/grafana | |
| container_name: grafana | |
| ports: | |
| - "3000:3000" | |
| volumes: | |
| - ${PWD}/grafana/grafana.ini:/etc/grafana/grafana.ini | |
| - ${PWD}/grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml | |
| links: | |
| - prometheus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment