Adds diagnostics

This commit is contained in:
Bryce Covert
2022-01-04 16:50:30 -08:00
parent 2e1fab5fd0
commit 0a65fe56f3
6 changed files with 7 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
:run-web? true
:run-background? true
:dd-env "dev"
:dd-service "integreat-app"
:yodlee2-admin-user "e02b38f9-9865-4264-8e4f-6a5ac2c500b0_ADMIN"
:yodlee2-integreat-user "integreat-main"
:yodlee2-client-id "l6sUyK2NEq3mwopISHlFGWUcJ1U8OUQd"

View File

@@ -2,6 +2,7 @@
:datomic-url "datomic:ddb://us-east-1/integreat/integreat-prod"
:scheme "https"
:dd-env "prod"
:dd-service "integreat-background-worker"
:jwt-secret "auto ap invoices are awesome"
:invoice-import-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod"
:requests-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-background-request-prod"

View File

@@ -2,6 +2,7 @@
:datomic-url "datomic:ddb://us-east-1/integreat/integreat-prod"
:scheme "https"
:dd-env "prod"
:dd-service "integreat-app"
:jwt-secret "auto ap invoices are awesome"
:invoice-import-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod"
:requests-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-background-request-prod"

View File

@@ -2,6 +2,7 @@
:datomic-url "datomic:ddb://us-east-1/integreat/integreat-staging"
:scheme "https"
:dd-env "staging"
:dd-service "integreat-background-worker"
:jwt-secret "auto ap invoices are awesome"
:invoice-import-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-staging"
:requests-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-background-request-staging"

View File

@@ -2,6 +2,7 @@
:datomic-url "datomic:ddb://us-east-1/integreat/integreat-staging"
:scheme "https"
:dd-env "staging"
:dd-service "integreat-app"
:jwt-secret "auto ap invoices are awesome"
:invoice-import-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-staging"
:requests-queue-url "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-background-request-staging"

View File

@@ -4,5 +4,6 @@
[config.core :refer [env]]))
(mount/defstate metrics-setup
:start (statsd/setup! :host "127.0.0.1" :port 8125 :prefix "integreat.app")
:start (statsd/setup! :host "127.0.0.1" :port 8125 :prefix "integreat.app" :tags #{(str "env:" (:dd-env env))
(str "service:" (:dd-service env))})
:stop (statsd/shutdown!))