diff --git a/server/apps/server-app/build.gradle.kts b/server/apps/server-app/build.gradle.kts index 40a5366dfe..eb91de0596 100644 --- a/server/apps/server-app/build.gradle.kts +++ b/server/apps/server-app/build.gradle.kts @@ -9,6 +9,7 @@ dependencies { implementation("io.awspring.cloud:spring-cloud-aws-starter-s3") implementation("io.awspring.cloud:spring-cloud-aws-starter-secrets-manager") implementation("io.awspring.cloud:spring-cloud-aws-starter-sqs") + implementation("io.micrometer:micrometer-registry-prometheus") implementation(libs.org.springdoc.springdoc.openapi.starter.common) implementation("org.springframework.ai:spring-ai-openai-spring-boot-starter:${rootProject.libs.versions.spring.ai.get()}") implementation("org.springframework.ai:spring-ai-pgvector-store-spring-boot-starter:${rootProject.libs.versions.spring.ai.get()}") diff --git a/server/docker/monitoring.yml b/server/docker/monitoring.yml new file mode 100644 index 0000000000..b303e96975 --- /dev/null +++ b/server/docker/monitoring.yml @@ -0,0 +1,12 @@ +# This configuration is intended for development purpose +name: bytechef-monitoring +services: + prometheus: + image: prom/prometheus:v3.0.1 + extra_hosts: [ 'host.docker.internal:host-gateway' ] + volumes: + - ./prometheus/:/etc/prometheus/ + command: + - --config.file=/etc/prometheus/prometheus-${profile:-dev}.yml + ports: + - 9090:9090 diff --git a/server/docker/prometheus/prometheus-dev.yml b/server/docker/prometheus/prometheus-dev.yml new file mode 100644 index 0000000000..62c828b574 --- /dev/null +++ b/server/docker/prometheus/prometheus-dev.yml @@ -0,0 +1,17 @@ +global: + scrape_interval: 15s # By default, scrape targets every 15 seconds. + evaluation_interval: 15s # By default, scrape targets every 15 seconds. + + # Attach these labels to any time series or alerts when communicating with + # external systems (federation, remote storage, Alertmanager). + external_labels: + monitor: 'bytechef' + +scrape_configs: + - job_name: 'prometheus' + static_configs: + - targets: ['host.docker.internal:9090'] + - job_name: 'bytechef' + metrics_path: '/actuator/prometheus' + static_configs: + - targets: ['host.docker.internal:9555'] diff --git a/server/libs/modules/task-dispatchers/branch/src/test/resources/definition/branch_v1.json b/server/libs/modules/task-dispatchers/branch/src/test/resources/definition/branch_v1.json index b7aa62b0a4..ee60ab3930 100644 --- a/server/libs/modules/task-dispatchers/branch/src/test/resources/definition/branch_v1.json +++ b/server/libs/modules/task-dispatchers/branch/src/test/resources/definition/branch_v1.json @@ -155,4 +155,4 @@ "title" : "Branch", "version" : 1, "variableProperties" : null -} \ No newline at end of file +}