         :cwd "/workspace/exp/kafka"
         :command "/bin/bash"
         :args '("bin/kafka-server-start.sh" "config/server.properties")
-        :tags '(kafka)
+        :tags '(kafka sam-local)
         :port 9092
         :stop-signal 'kill
         :kill-process-buffer-on-stop t))

        :cwd "/workspace/exp/kafka"
        :command "/bin/bash"
        :args '("bin/kafka-console-consumer.sh" "--zookeeper" "localhost:2181" "--topic" "events")
        :tags '(kafka)
        :stop-signal 'kill
        :kill-process-buffer-on-stop t))


(setq prodigy-services
      (prodigy-define-service
        :name "Kafka Consumer \"analyzed\" localhost"
        :cwd "/workspace/exp/kafka"
        :command "/bin/bash"
        :args '("bin/kafka-console-consumer.sh" "--zookeeper" "localhost:2181" "--topic" "analyzed")
        :tags '(kafka)
        :stop-signal 'kill
        :kill-process-buffer-on-stop t))

;; create prodigy configurtion

(require 'prodigy)

;; reset status
(setq prodigy-services '())

;;
;; SAMSARA
;; Ingestion API
(setq prodigy-services
      (prodigy-define-service
        :name "Samsara / Ingestion-APIs / console"
        :cwd "/workspace/samsara/ingestion-api"
        :command "lein"
        :args '("run" "--" "-c" "./config/config.edn")
        :tags '(samsara)
        :port 9000
        :stop-signal 'kill
        :kill-process-buffer-on-stop t))

(setq prodigy-services
      (prodigy-define-service
        :name "Samsara / Ingestion-APIs / kafka"
        :cwd "/workspace/samsara/ingestion-api"
        :command "lein"
        :args '("run" "--" "-c" "./config/config-kafka.edn")
        :tags '(samsara sam-local)
        :port 9000
        :stop-signal 'kill
        :kill-process-buffer-on-stop t))
