Skip to content

feat: Add Prometheus/Grafana monitoring docker profile and restructure config folder#528

Merged
tienna merged 15 commits intomainfrom
feat/monitoring-profile
Jul 17, 2025
Merged

feat: Add Prometheus/Grafana monitoring docker profile and restructure config folder#528
tienna merged 15 commits intomainfrom
feat/monitoring-profile

Conversation

@tienna
Copy link
Copy Markdown
Contributor

@tienna tienna commented Jul 9, 2025

Summary

This PR introduces a monitoring setup using Prometheus and Grafana, and restructures the configuration files to improve maintainability and clarity.

Changes

  • ✅ Created config/node/ directory and moved all Cardano node configuration files into it.
  • ✅ Removed outdated config/testnet/ directory.
  • ✅ Updated environment variable to reflect directory change:
    • CARDANO_CONFIG=./config/node/${NETWORK}
  • ✅ Created config/monitoring/ directory to hold:
    • prometheus.yml
    • Grafana dashboard JSON configuration
  • ✅ Added docker-compose-monitor.yaml to define services for:
    • Prometheus
    • Grafana
    • PostgreSQL exporter
  • ✅ Updated .env.docker-compose to include new monitoring-related variables
  • ✅ Added Prometheus-related dependencies to:
    • api/pom.xml
    • yaci-indexer/pom.xml
  • ✅ Configured Spring Boot application to expose metrics at /actuator/prometheus
  • ✅ Configured Cardano node to expose Prometheus metrics via EkgMetrics and PrometheusPort

Motivation

This setup allows developers and operators to monitor the health and performance of the Rosetta-java service, the Cardano node, and the PostgreSQL database.

Copy link
Copy Markdown
Contributor Author

@tienna tienna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typing mistake is fixed by 2nd commit (from 0.0.0 to 0.0.0.0)

@tienna tienna force-pushed the feat/monitoring-profile branch from 09a15c7 to 9f202aa Compare July 14, 2025 10:42
@sonarqubecloud
Copy link
Copy Markdown

@tienna tienna merged commit 15738e5 into main Jul 17, 2025
9 checks passed
@tienna tienna deleted the feat/monitoring-profile branch July 17, 2025 11:49
@linconvidal linconvidal added this to the 1.3.0 milestone Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants