2025-02-13 15:44:08 +00:00
|
|
|
# Deployments
|
|
|
|
|
|
|
|
|
|
## Note about host service testing
|
2025-03-17 18:14:15 +00:00
|
|
|
|
|
|
|
|
If you want the docker prometheus in this stack to pull from your
|
|
|
|
|
locally running service on localhost:8080 then edit the
|
|
|
|
|
`compose.local.yaml` and change the reference from
|
2025-02-13 15:44:08 +00:00
|
|
|
`./prometheus.allmetrics.yaml:/etc/prometheus/prometheus.yml`
|
|
|
|
|
to `./prometheus.localservice.yaml:/etc/prometheus/prometheus.yml`
|
|
|
|
|
|
|
|
|
|
## Local
|
2025-03-17 18:14:15 +00:00
|
|
|
|
|
|
|
|
When running `task compose:up:local` prometheus will be available on
|
|
|
|
|
`http://localhost:9090`
|
2025-02-13 15:44:08 +00:00
|
|
|
|
|
|
|
|
When running `task compose:up` prometheus will be available on
|
2025-03-17 18:14:15 +00:00
|
|
|
`http://localhost:9091`
|
2025-02-13 15:44:08 +00:00
|
|
|
|
|
|
|
|
To see which target services are being scraped by prometheus you can go to
|
|
|
|
|
http:// localhost: [port] /targets
|
|
|
|
|
|
|
|
|
|
### Local with service on host
|
2025-03-17 18:14:15 +00:00
|
|
|
|
|
|
|
|
If you need to run a service directly on the host for debugging then use
|
2025-02-13 15:44:08 +00:00
|
|
|
`task compose:up:test` and then run the service like
|
2025-03-17 18:14:15 +00:00
|
|
|
`PGPORT=5430 go run ./cmd/queryAPI`
|