Merged in feature/docresult (pull request #105)
Document Result Endpoint * testing * cleantesting * progress * query * lint * readme * dockerclient * api * passtest * tests * test
This commit is contained in:
@@ -185,9 +185,9 @@ services:
|
||||
networks:
|
||||
- server-network
|
||||
|
||||
query_service:
|
||||
query_api:
|
||||
image: queryorchestration:latest
|
||||
command: ["./queryService"]
|
||||
command: ["./queryAPI"]
|
||||
depends_on:
|
||||
localstack:
|
||||
condition: service_healthy
|
||||
|
||||
@@ -4,10 +4,10 @@ global:
|
||||
scrape_interval: 10s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: "query_service"
|
||||
- job_name: "query_api"
|
||||
static_configs:
|
||||
- targets:
|
||||
- "query_service:8080"
|
||||
- "query_api:8080"
|
||||
metrics_path: "/metrics"
|
||||
|
||||
- job_name: "doc_init_runner"
|
||||
|
||||
+11
-10
@@ -1,25 +1,26 @@
|
||||
# Deployments
|
||||
|
||||
## Note about host service testing
|
||||
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
|
||||
|
||||
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
|
||||
`./prometheus.allmetrics.yaml:/etc/prometheus/prometheus.yml`
|
||||
to `./prometheus.localservice.yaml:/etc/prometheus/prometheus.yml`
|
||||
|
||||
|
||||
## Local
|
||||
When running `task compose:up:local` prometheus will be available on
|
||||
http://localhost:9090
|
||||
|
||||
When running `task compose:up:local` prometheus will be available on
|
||||
`http://localhost:9090`
|
||||
|
||||
When running `task compose:up` prometheus will be available on
|
||||
http://localhost:9091
|
||||
`http://localhost:9091`
|
||||
|
||||
To see which target services are being scraped by prometheus you can go to
|
||||
http:// localhost: [port] /targets
|
||||
|
||||
|
||||
### Local with service on host
|
||||
If you need to run a service directly on the host for debugging then use
|
||||
|
||||
If you need to run a service directly on the host for debugging then use
|
||||
`task compose:up:test` and then run the service like
|
||||
`PGPORT=5430 go run ./cmd/queryService`
|
||||
`PGPORT=5430 go run ./cmd/queryAPI`
|
||||
|
||||
Reference in New Issue
Block a user