Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

745 - only metrics with local setup #1816

Merged
merged 4 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/apps/server-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}")
Expand Down
12 changes: 12 additions & 0 deletions server/docker/monitoring.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions server/docker/prometheus/prometheus-dev.yml
Original file line number Diff line number Diff line change
@@ -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']
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@
"title" : "Branch",
"version" : 1,
"variableProperties" : null
}
}
Loading