diff options
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 | ||