diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-12 22:51:43 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-12 22:51:43 +0000 |
| commit | 51751d59f30a0c0f396afd1873ece9f4f77b44de (patch) | |
| tree | cfec6555427f1be38997e00f313549c41dfaa609 /docs/how-to/prometheus-setup.md | |
| parent | ab3337d0a3bf25c282f4d48e5d6150cf291f41e5 (diff) | |
Change default port from 8080 to 7334 (NGIT on phone keypad)
- Update default bind address in src/config.rs to 127.0.0.1:7334
- Update all four critical config sources per AGENTS.md:
- src/config.rs (code default and tests)
- .env.example (development template)
- docs/reference/configuration.md (user documentation)
- nix/module.nix (NixOS deployment)
- Update all documentation examples and references:
- README.md (with note about phone keypad mnemonic)
- docs/how-to/*.md (deploy, prometheus-setup, test-compliance)
- docs/explanation/*.md (architecture, comparison)
- docs/learnings/grasp-audit.md
Port 7334 spells NGIT on a phone keypad, making it memorable and
project-specific.
All tests pass (336 lib tests + 51 integration tests).
Diffstat (limited to 'docs/how-to/prometheus-setup.md')
| -rw-r--r-- | docs/how-to/prometheus-setup.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/how-to/prometheus-setup.md b/docs/how-to/prometheus-setup.md index 741255b..53ec480 100644 --- a/docs/how-to/prometheus-setup.md +++ b/docs/how-to/prometheus-setup.md | |||
| @@ -13,7 +13,7 @@ This guide shows how to configure Prometheus and Grafana to monitor ngit-grasp. | |||
| 13 | First, verify that ngit-grasp is exposing metrics: | 13 | First, verify that ngit-grasp is exposing metrics: |
| 14 | 14 | ||
| 15 | ```bash | 15 | ```bash |
| 16 | curl http://localhost:8080/metrics | 16 | curl http://localhost:7334/metrics |
| 17 | ``` | 17 | ``` |
| 18 | 18 | ||
| 19 | You should see Prometheus-formatted metrics like: | 19 | You should see Prometheus-formatted metrics like: |
| @@ -41,7 +41,7 @@ services.prometheus = { | |||
| 41 | { | 41 | { |
| 42 | job_name = "ngit-grasp"; | 42 | job_name = "ngit-grasp"; |
| 43 | static_configs = [{ | 43 | static_configs = [{ |
| 44 | targets = [ "localhost:8080" ]; # ngit-grasp bind address | 44 | targets = [ "localhost:7334" ]; # ngit-grasp bind address |
| 45 | }]; | 45 | }]; |
| 46 | scrape_interval = "15s"; | 46 | scrape_interval = "15s"; |
| 47 | metrics_path = "/metrics"; | 47 | metrics_path = "/metrics"; |
| @@ -105,7 +105,7 @@ global: | |||
| 105 | scrape_configs: | 105 | scrape_configs: |
| 106 | - job_name: 'ngit-grasp' | 106 | - job_name: 'ngit-grasp' |
| 107 | static_configs: | 107 | static_configs: |
| 108 | - targets: ['host.docker.internal:8080'] # or your ngit-grasp host | 108 | - targets: ['host.docker.internal:7334'] # or your ngit-grasp host |
| 109 | metrics_path: /metrics | 109 | metrics_path: /metrics |
| 110 | ``` | 110 | ``` |
| 111 | 111 | ||