-
Notifications
You must be signed in to change notification settings - Fork 1
feat: local dev stack (20 profiles), observability, metrics, load testing #31
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1d238fd
feat: add docker-compose local dev stack with profiles
ankurs 97f763e
fix: remove spurious 'build-' prefix from Dockerfile app label
ankurs 3f37915
feat: add Grafana dashboard, include_docker_compose flag, deploy/loca…
ankurs c686cab
feat: infra-only local-stack, load testing, dynamic endpoint display
ankurs 3dbf8e6
fix: stop gitignoring misc/, add loadtest config
ankurs c0c6e0b
fix: add --remove-orphans to local-stack, fix gitignore test
ankurs a8110cc
feat: add metrics package with interface, promauto, and sample usage
ankurs b3eb038
feat: add Jaeger to obs profile for OTEL distributed tracing
ankurs 5f90a49
fix: address PR review — portable compose, rm cleanup, psql exec, YAM…
ankurs a134364
feat: per-service docker-compose profiles with inline option selection
ankurs 2829222
fix: AlloyDB, local-exec, obs shortcut, code review fixes
ankurs ed0c4d1
fix: stale deps reference in AGENTS.md load testing note
ankurs 8722574
fix: PR review — Grafana UID, health checks, Linux support, skip warning
ankurs 31c1d91
fix: ministack image name, gatherMetric error handling, alloydb in Ma…
ankurs 58d690a
fix: local-stack-obs reuses endpoint display, local-stack-down uses -…
ankurs f05db4e
chore: reorder cookiecutter prompts, update README features list
ankurs d1c867c
fix: sanitize hyphens/dots in Prometheus metrics namespace
ankurs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| global: | ||
| scrape_interval: 15s | ||
|
|
||
| scrape_configs: | ||
| - job_name: {{cookiecutter.app_name}} | ||
| static_configs: | ||
| - targets: ["{{cookiecutter.app_name}}:9091"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| services: | ||
| {{cookiecutter.app_name}}: | ||
| build: . | ||
| restart: always | ||
| ports: | ||
| - "9090:9090" | ||
| - "9091:9091" | ||
| env_file: | ||
| - local.env | ||
|
|
||
| db: | ||
| image: postgres:17-alpine | ||
| restart: always | ||
| profiles: ["deps"] | ||
| ports: | ||
| - "5433:5432" | ||
| environment: | ||
| POSTGRES_DB: {{cookiecutter.app_name}}_dev | ||
| POSTGRES_PASSWORD: postgres | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| redis: | ||
| image: redis:8-alpine | ||
| restart: always | ||
| profiles: ["deps"] | ||
| ports: | ||
| - "6379:6379" | ||
|
|
||
| adminer: | ||
| image: adminer | ||
| restart: always | ||
| profiles: ["deps"] | ||
| ports: | ||
| - "8088:8080" | ||
|
|
||
| prometheus: | ||
| image: prom/prometheus:latest | ||
| restart: always | ||
| profiles: ["obs"] | ||
| ports: | ||
| - "9100:9090" | ||
| volumes: | ||
| - ./deploy/prometheus.yml:/etc/prometheus/prometheus.yml | ||
|
|
||
| grafana: | ||
| image: grafana/grafana:latest | ||
| restart: always | ||
| profiles: ["obs"] | ||
| ports: | ||
| - "3000:3000" | ||
| environment: | ||
| GF_SECURITY_ADMIN_PASSWORD: admin | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.