Skip to content

Conversation

@vimscientist69
Copy link
Contributor

@vimscientist69 vimscientist69 commented Oct 30, 2025

Reason

Scraping api-dev and worker-dev metrics locally are important for understanding application behavior, debugging and monitoring locally with Grafana local instance.

Tech Details List

  1. Setup prometheus service configuration in docker-compose.yml and configure prometheus scrapers with prometheus.yml
  2. Add prometheus as a data source in grafana configuration
  3. Reconfigure networks to not use network_mode: host, but instead use network groups (have a "monitoring" and "backend" group)

Tasks:

  1. Setup prometheus service configuration in docker-compose.yml and configure prometheus scrapers with prometheus.yml
  2. Add prometheus as a data source in grafana configuration
  3. Reconfigure networks to not use network_mode: host, but instead use network groups (have a "monitoring" and "backend" group)
  4. Improve startup time for api-dev and worker-dev docker-compose services by using persistent volumes to cache the .build directory

Un-important tasks:

  • Update environment variable files in Obsidian so that when pull request is merged, @AdonisCodes can update their environment variables in Backend to not cause any issues
  • Update environment variables in Github actions for testing (if needed) and secrets for sandbox fly.io app

Links:

ISSUE-78
closes/resolves #78

Testing

Steps:

  1. Run required commands to test all the code modified by this PR
# unit tests
# integration tests
# procs / testing logic
  1. Further testing can be done by following the notes in TESTING-QA

Output:

Testing QA

…ng up prom service locally, scraping api-dev and worker-dev and adding it as data source in grafana
…r setting up prom service locally, scraping api-dev and worker-dev and adding it as data source in grafana
…r setting up prom service locally, scraping api-dev and worker-dev and adding it as data source in grafana
…r setting up prom service locally, scraping api-dev and worker-dev and adding it as data source in grafana
…r setting up prom service locally, scraping api-dev and worker-dev and adding it as data source in grafana
…r faster startup times, don't expose metrics for api-dev, update automa-utilities to latest version so that prometheus service gets scraped by prometheus scraper successfully
@vimscientist69 vimscientist69 changed the title fix(docker-compose): save api-dev and worker-dev builds as volumes for faster startup times, don't expose metrics for api-dev, update automa-utilities to latest version so that prometheus service gets scraped by prometheus scraper successful Setup Prometheus Oct 30, 2025
@vimscientist69 vimscientist69 changed the title Setup Prometheus Setup Prometheus Scraper Locally to Scrape API-Dev, Worker-Dev and Prometheus Metrics & Add Prometheus Scrapers as Data Source in Local Grafana Oct 30, 2025
@vimscientist69 vimscientist69 self-assigned this Oct 30, 2025
@vimscientist69 vimscientist69 added the enhancement New feature or request label Oct 30, 2025
@blacksmith-sh

This comment has been minimized.

@blacksmith-sh

This comment has been minimized.

@vimscientist69 vimscientist69 merged commit c068a64 into develop Nov 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup Grafana / Prometheus scrapers

1 participant