Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
9b03ae7
Add PHP support implementation plan to CodeClarity
CedricHerzog Aug 13, 2025
cd19683
Add php-sbom plugin to go.work and update go.work.sum
CedricHerzog Aug 13, 2025
39471fb
Update go.work.sum to include new module versions and dependencies
CedricHerzog Aug 13, 2025
c11b2c2
Update Docker Compose scripts to replace js-license and js-vuln-finde…
CedricHerzog Aug 13, 2025
9cbef52
Replace js-license and js-vuln-finder plugins with license-finder and…
CedricHerzog Aug 13, 2025
7334d2e
chore: update Yarn to version 4.9.3 and add new dependency
CedricHerzog Aug 20, 2025
bb787b2
chore: remove PHP support action plan document
CedricHerzog Aug 20, 2025
3c9f1c4
Add Grafana dashboards for infrastructure monitoring and RabbitMQ ove…
CedricHerzog Aug 25, 2025
14c5ca9
fix: update knowledge setup and update commands to use relative path …
CedricHerzog Aug 25, 2025
523377b
chore: update go.work.sum to include new dependencies and remove obso…
CedricHerzog Aug 25, 2025
4b325ed
chore: update frontend subproject commit reference
CedricHerzog Aug 25, 2025
e19c56d
chore: update subproject commit reference in deployment
CedricHerzog Aug 25, 2025
950050c
chore: update subproject commit reference
CedricHerzog Aug 25, 2025
b52b91e
chore: update subproject commit reference
CedricHerzog Aug 26, 2025
3e2c6c7
chore: update backend subproject commit reference
CedricHerzog Aug 26, 2025
69c1b62
chore: update deployment subproject commit reference
CedricHerzog Aug 26, 2025
4612903
chore: update frontend subproject commit reference
CedricHerzog Aug 26, 2025
29c2191
chore: update go.work and go.work.sum to include additional utility d…
CedricHerzog Aug 26, 2025
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
Prev Previous commit
Next Next commit
Add Grafana dashboards for infrastructure monitoring and RabbitMQ ove…
…rview

- Created a new dashboard for infrastructure monitoring, including metrics for HTTP requests, database connections, average response time, and more.
- Added a comprehensive RabbitMQ overview dashboard with panels for queues, consumers, connections, message throughput, and detailed queue information.
- Provisioned Grafana dashboards and Prometheus data sources through YAML configuration files.
- Configured Prometheus to scrape metrics from various CodeClarity services, RabbitMQ, and Caddy.
- Updated environment variables to include Prometheus port for RabbitMQ.
  • Loading branch information
CedricHerzog committed Aug 25, 2025
commit 3c9f1c4decb6867cbf8081aa20661c003d75da22
96 changes: 87 additions & 9 deletions .cloud/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ services:
image: rabbitmq:4.1.1-management-alpine
env_file:
- ../env/.env.dev
environment:
- RABBITMQ_ENABLED_PLUGINS_FILE=/etc/rabbitmq/enabled_plugins
command: |
bash -c '
rabbitmq-plugins enable rabbitmq_management rabbitmq_prometheus --offline &&
exec docker-entrypoint.sh rabbitmq-server
'
ports:
- target: 5672
published: ${AMQP_PORT:-5672}
Expand All @@ -15,6 +22,10 @@ services:
published: ${AMQP_PORT_2:-15672}
protocol: tcp
mode: host
- target: 15692
published: ${AMQP_PROMETHEUS_PORT:-15692}
protocol: tcp
mode: host
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
Expand Down Expand Up @@ -49,24 +60,91 @@ services:
env_file:
- ../env/.env.dev

pg_bouncer:
image: bitnami/pgbouncer:1.24.1
adminer:
image: adminer:5.3.0
restart: always
env_file:
- ../env/.env.dev
ports:
- 8080:8080
command: [ "php", "-d", "memory_limit=-1", "-d", "post_max_size=500M", "-d", "upload_max_filesize=500M", "-S", "0.0.0.0:8080", "-t", "/var/www/html" ]

prometheus:
image: prom/prometheus:v2.55.1
container_name: codeclarity-prometheus-dev
restart: always
ports:
- "9091:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=15d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--web.enable-lifecycle'
- '--web.external-url=http://localhost:9091'
depends_on:
- rabbitmq
- db
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M

grafana:
image: grafana/grafana:11.5.0
container_name: codeclarity-grafana-dev
restart: always
ports:
- 6432:6432
- "3001:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource
depends_on:
- prometheus
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M

adminer:
image: adminer:5.3.0
postgres_exporter:
image: prometheuscommunity/postgres-exporter:v0.15.0
container_name: codeclarity-postgres-exporter-dev
restart: always
env_file:
- ../env/.env.dev
environment:
- DATA_SOURCE_NAME=postgresql://postgres:$${POSTGRES_PASSWORD}@codeclarity-dev-db-1:5432/codeclarity?sslmode=disable
ports:
- 8080:8080
command: [ "php", "-d", "memory_limit=-1", "-d", "post_max_size=500M", "-d", "upload_max_filesize=500M", "-S", "0.0.0.0:8080", "-t", "/var/www/html" ]
- "9187:9187"
depends_on:
- db
deploy:
resources:
limits:
cpus: '0.25'
memory: 128M
reservations:
cpus: '0.1'
memory: 64M

volumes:
results_db_data_container:
results_db_apps_data_container:
db_data_container:
prometheus_data:
grafana_data:
Loading