diff --git a/.internal/metrics/config/prometheus.yml b/.internal/metrics/config/prometheus.yml index 68e02c2..77fb64d 100644 --- a/.internal/metrics/config/prometheus.yml +++ b/.internal/metrics/config/prometheus.yml @@ -1,5 +1,5 @@ global: - scrape_interval: 15s + scrape_interval: 30s scrape_configs: - job_name: 'proximus' diff --git a/docker/docker-compose-asdb-6.4.yml b/docker/docker-compose-asdb-6.4.yml index 8118fc6..16ca26f 100644 --- a/docker/docker-compose-asdb-6.4.yml +++ b/docker/docker-compose-asdb-6.4.yml @@ -57,14 +57,14 @@ services: # - svc # Services used to monitor the Aerospike Vector Search cluster. -# This collects basic usage metrics so that Aerospike can better understand AAVS is being used. +# This collects basic usage metrics so that Aerospike can better understand AVS is being used. # If you would like to disable this, you can remove the following services. update-targets: image: python:3.9-alpine volumes: - - ./scripts/update_targets.py:/scripts/update_targets.py - - ./config:/config + - ../.internal/metrics/scripts/update_targets.py:/scripts/update_targets.py + - ../.internal/metrics/config:/config entrypoint: ["sh", "-c", "python3 /scripts/update_targets.py"] networks: - svc @@ -72,7 +72,7 @@ services: prometheus: image: prom/prometheus:v2.45.0 volumes: - - ./config:/etc/prometheus + - ../.internal/metrics/config:/etc/prometheus command: - "--config.file=/etc/prometheus/prometheus.yml" ports: @@ -85,6 +85,7 @@ services: networks: - svc + networks: svc: name: svc diff --git a/prism-image-search/docker-compose-asdb-6.4.yml b/prism-image-search/docker-compose-asdb-6.4.yml index f14949b..1bccbff 100644 --- a/prism-image-search/docker-compose-asdb-6.4.yml +++ b/prism-image-search/docker-compose-asdb-6.4.yml @@ -18,7 +18,7 @@ services: interval: 5s timeout: 20s retries: 10 - avs: + aerospike-vector-search: image: aerospike/aerospike-vector-search:0.11.1 environment: FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}" @@ -31,26 +31,55 @@ services: - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search - ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro healthcheck: - test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + test: ["CMD", "curl", "-f", "http://aerospike-vector-search:5040/manage/rest/v1"] interval: 5s timeout: 20s retries: 10 app: image: "aerospike/prism-search-example:latest" depends_on: - avs: + aerospike-vector-search: condition: service_healthy ports: - "8080:8080" networks: - avs-demo environment: - AVS_HOST: avs + AVS_HOST: aerospike-vector-search AVS_PORT: "5000" APP_NUM_QUOTES: "5000" GRPC_DNS_RESOLVER: native volumes: - ./container-volumes/prism/images:/prism/static/images/data +# Services used to monitor the Aerospike Vector Search cluster. +# This collects basic usage metrics so that Aerospike can better understand AVS is being used. +# If you would like to disable this, you can remove the following services. + + update-targets: + image: python:3.9-alpine + volumes: + - ../.internal/metrics/scripts/update_targets.py:/scripts/update_targets.py + - ../.internal/metrics/config:/config + entrypoint: ["sh", "-c", "python3 /scripts/update_targets.py"] + networks: + - avs-demo + + prometheus: + image: prom/prometheus:v2.45.0 + volumes: + - ../.internal/metrics/config:/etc/prometheus + command: + - "--config.file=/etc/prometheus/prometheus.yml" + ports: + - "9090:9090" + depends_on: + update-targets: + condition: service_completed_successfully + aerospike-vector-search: + condition: service_healthy + networks: + - avs-demo + networks: avs-demo: {} diff --git a/prism-image-search/docker-compose-dev.yml b/prism-image-search/docker-compose-dev.yml index 7506844..65bfb24 100644 --- a/prism-image-search/docker-compose-dev.yml +++ b/prism-image-search/docker-compose-dev.yml @@ -18,7 +18,7 @@ services: interval: 5s timeout: 20s retries: 10 - avs: + aerospike-vector-search: image: aerospike/aerospike-vector-search:0.11.1 environment: FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}" @@ -32,26 +32,55 @@ services: - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search - ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro healthcheck: - test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + test: ["CMD", "curl", "-f", "http://aerospike-vector-search:5040/manage/rest/v1"] interval: 5s timeout: 20s retries: 10 app: image: "prism:latest" depends_on: - avs: + aerospike-vector-search: condition: service_healthy ports: - "8080:8080" networks: - avs-demo environment: - AVS_HOST: avs + AVS_HOST: aerospike-vector-search AVS_PORT: "5000" APP_NUM_QUOTES: "5000" GRPC_DNS_RESOLVER: native volumes: - ./container-volumes/prism/images:/prism/static/images/data +# Services used to monitor the Aerospike Vector Search cluster. +# This collects basic usage metrics so that Aerospike can better understand AVS is being used. +# If you would like to disable this, you can remove the following services. + + update-targets: + image: python:3.9-alpine + volumes: + - ../.internal/metrics/scripts/update_targets.py:/scripts/update_targets.py + - ../.internal/metrics/config:/config + entrypoint: ["sh", "-c", "python3 /scripts/update_targets.py"] + networks: + - avs-demo + + prometheus: + image: prom/prometheus:v2.45.0 + volumes: + - ../.internal/metrics/config:/etc/prometheus + command: + - "--config.file=/etc/prometheus/prometheus.yml" + ports: + - "9090:9090" + depends_on: + update-targets: + condition: service_completed_successfully + aerospike-vector-search: + condition: service_healthy + networks: + - avs-demo + networks: avs-demo: {} diff --git a/prism-image-search/docker-compose.yml b/prism-image-search/docker-compose.yml index ae2b769..8b7ffb1 100644 --- a/prism-image-search/docker-compose.yml +++ b/prism-image-search/docker-compose.yml @@ -18,7 +18,7 @@ services: interval: 5s timeout: 20s retries: 10 - avs: + aerospike-vector-search: image: aerospike/aerospike-vector-search:0.11.1 environment: FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}" @@ -31,26 +31,55 @@ services: - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search - ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro healthcheck: - test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + test: ["CMD", "curl", "-f", "http://aerospike-vector-search:5040/manage/rest/v1"] interval: 5s timeout: 20s retries: 10 app: image: "aerospike/prism-search-example:latest" depends_on: - avs: + aerospike-vector-search: condition: service_healthy ports: - "8080:8080" networks: - avs-demo environment: - AVS_HOST: avs + AVS_HOST: aerospike-vector-search AVS_PORT: "5000" APP_NUM_QUOTES: "5000" GRPC_DNS_RESOLVER: native volumes: - ./container-volumes/prism/images:/prism/static/images/data +# Services used to monitor the Aerospike Vector Search cluster. +# This collects basic usage metrics so that Aerospike can better understand AVS is being used. +# If you would like to disable this, you can remove the following services. + + update-targets: + image: python:3.9-alpine + volumes: + - ../.internal/metrics/scripts/update_targets.py:/scripts/update_targets.py + - ../.internal/metrics/config:/config + entrypoint: ["sh", "-c", "python3 /scripts/update_targets.py"] + networks: + - avs-demo + + prometheus: + image: prom/prometheus:v2.45.0 + volumes: + - ../.internal/metrics/config:/etc/prometheus + command: + - "--config.file=/etc/prometheus/prometheus.yml" + ports: + - "9090:9090" + depends_on: + update-targets: + condition: service_completed_successfully + aerospike-vector-search: + condition: service_healthy + networks: + - avs-demo + networks: avs-demo: {} diff --git a/quote-semantic-search/docker-compose-asdb-6.4.yml b/quote-semantic-search/docker-compose-asdb-6.4.yml index 11a7eb8..2cb2b75 100644 --- a/quote-semantic-search/docker-compose-asdb-6.4.yml +++ b/quote-semantic-search/docker-compose-asdb-6.4.yml @@ -18,7 +18,7 @@ services: interval: 5s timeout: 20s retries: 10 - avs: + aerospike-vector-search: image: aerospike/aerospike-vector-search:0.11.1 environment: FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}" @@ -33,14 +33,14 @@ services: - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search - ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro healthcheck: - test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + test: ["CMD", "curl", "-f", "http://aerospike-vector-search:5040/manage/rest/v1"] interval: 5s timeout: 20s retries: 10 app: image: "quote-search:latest" depends_on: - avs: + aerospike-vector-search: condition: service_healthy ports: - "8080:8080" @@ -49,10 +49,39 @@ services: volumes: - ./container-volumes/quote-search/data:/container-volumes/quote-search/data environment: - AVS_HOST: avs + AVS_HOST: aerospike-vector-search AVS_PORT: "5000" APP_NUM_QUOTES: "5000" GRPC_DNS_RESOLVER: native +# Services used to monitor the Aerospike Vector Search cluster. +# This collects basic usage metrics so that Aerospike can better understand AVS is being used. +# If you would like to disable this, you can remove the following services. + + update-targets: + image: python:3.9-alpine + volumes: + - ../.internal/metrics/scripts/update_targets.py:/scripts/update_targets.py + - ../.internal/metrics/config:/config + entrypoint: ["sh", "-c", "python3 /scripts/update_targets.py"] + networks: + - avs-demo + + prometheus: + image: prom/prometheus:v2.45.0 + volumes: + - ../.internal/metrics/config:/etc/prometheus + command: + - "--config.file=/etc/prometheus/prometheus.yml" + ports: + - "9090:9090" + depends_on: + update-targets: + condition: service_completed_successfully + aerospike-vector-search: + condition: service_healthy + networks: + - avs-demo + networks: avs-demo: {} \ No newline at end of file diff --git a/quote-semantic-search/docker-compose-dev.yml b/quote-semantic-search/docker-compose-dev.yml index 0138ead..9631682 100644 --- a/quote-semantic-search/docker-compose-dev.yml +++ b/quote-semantic-search/docker-compose-dev.yml @@ -18,7 +18,7 @@ services: interval: 5s timeout: 20s retries: 10 - avs: + aerospike-vector-search: image: aerospike/aerospike-vector-search:0.11.1 environment: FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}" @@ -33,14 +33,14 @@ services: - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search - ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro healthcheck: - test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + test: ["CMD", "curl", "-f", "http://aerospike-vector-search:5040/manage/rest/v1"] interval: 5s timeout: 20s retries: 10 app: image: "quote-search:latest" depends_on: - avs: + aerospike-vector-search: condition: service_healthy ports: - "8080:8080" @@ -49,10 +49,39 @@ services: volumes: - ./container-volumes/quote-search/data:/container-volumes/quote-search/data environment: - AVS_HOST: avs + AVS_HOST: aerospike-vector-search AVS_PORT: "5000" APP_NUM_QUOTES: "5000" GRPC_DNS_RESOLVER: native +# Services used to monitor the Aerospike Vector Search cluster. +# This collects basic usage metrics so that Aerospike can better understand AVS is being used. +# If you would like to disable this, you can remove the following services. + + update-targets: + image: python:3.9-alpine + volumes: + - ../.internal/metrics/scripts/update_targets.py:/scripts/update_targets.py + - ../.internal/metrics/config:/config + entrypoint: ["sh", "-c", "python3 /scripts/update_targets.py"] + networks: + - avs-demo + + prometheus: + image: prom/prometheus:v2.45.0 + volumes: + - ../.internal/metrics/config:/etc/prometheus + command: + - "--config.file=/etc/prometheus/prometheus.yml" + ports: + - "9090:9090" + depends_on: + update-targets: + condition: service_completed_successfully + aerospike-vector-search: + condition: service_healthy + networks: + - avs-demo + networks: avs-demo: {} \ No newline at end of file diff --git a/quote-semantic-search/docker-compose.yml b/quote-semantic-search/docker-compose.yml index c5fc3d1..7297f49 100644 --- a/quote-semantic-search/docker-compose.yml +++ b/quote-semantic-search/docker-compose.yml @@ -18,7 +18,7 @@ services: interval: 5s timeout: 20s retries: 10 - avs: + aerospike-vector-search: image: aerospike/aerospike-vector-search:0.11.1 environment: FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}" @@ -33,14 +33,14 @@ services: - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search - ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro healthcheck: - test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + test: ["CMD", "curl", "-f", "http://aerospike-vector-search:5040/manage/rest/v1"] interval: 5s timeout: 20s retries: 10 app: image: "aerospike/quote-search-example:latest" depends_on: - avs: + aerospike-vector-search: condition: service_healthy ports: - "8080:8080" @@ -49,10 +49,39 @@ services: volumes: - ./container-volumes/quote-search/data:/container-volumes/quote-search/data environment: - AVS_HOST: avs + AVS_HOST: aerospike-vector-search AVS_PORT: "5000" APP_NUM_QUOTES: "5000" GRPC_DNS_RESOLVER: native +# Services used to monitor the Aerospike Vector Search cluster. +# This collects basic usage metrics so that Aerospike can better understand AVS is being used. +# If you would like to disable this, you can remove the following services. + + update-targets: + image: python:3.9-alpine + volumes: + - ../.internal/metrics/scripts/update_targets.py:/scripts/update_targets.py + - ../.internal/metrics/config:/config + entrypoint: ["sh", "-c", "python3 /scripts/update_targets.py"] + networks: + - avs-demo + + prometheus: + image: prom/prometheus:v2.45.0 + volumes: + - ../.internal/metrics/config:/etc/prometheus + command: + - "--config.file=/etc/prometheus/prometheus.yml" + ports: + - "9090:9090" + depends_on: + update-targets: + condition: service_completed_successfully + aerospike-vector-search: + condition: service_healthy + networks: + - avs-demo + networks: avs-demo: {} \ No newline at end of file