Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Pre-requisite
The privilege needed to enable this feature is called PRIV_SCANCONF_SERVER_METRICS.
Contact admin or CloudSphere support to add this privilege to your user account.


To enable this feature

Discovery→ Scan Jobs → Configuration →Scan details → Enabling → ServerMetrics

If the ServerMetrics enabling is added :
The metrics collector will be deployed on the target and metrics will be collected every 5 min.

When the ServerMetrics enabling is removed :
The metrics collector will be removed on the target and metrics collection will be stopped.


To update metrics docker

docker pull registry.cloudsphere.com/metrics-collector:master-131fd729
docker images
REPOSITORY                                                       TAG                        IMAGE ID       CREATED         SIZE
iqcloud/metrics-collector                                        67002b716e40            91a9637526db   5 days ago      394MB

Replace the image ID in the /opt/docker/appliance-stack.yml -

image: 91a9637526db

Replace this image ID from the output of “docker images” command.

Each version will have a different Tag, you can get the Tags - https://hub.docker.com/r/iqcloud/metrics-collector/tags

metrics-server:
    image: 91a9637526db
    restart: always
    ports:
      - "8080:8080"
    volumes:
      - "/opt/iqas/server/db:/opt/iqas/server/db"
      - "/opt/iqas/metrics:/opt/iqas/metrics"
    environment:
      - JAVA_OPTS=-Xdebug -Dcom.iquate.security.store=jdbc:/opt/iqas/server/db/keychain;AUTO_SERVER=TRUE
      - metrics.tenantId=${TENANT_ID}
      - metrics.applianceId=${APPLIANCE_ID}
      - spring.datasource.url=jdbc:h2:file:/opt/iqas/metrics/data
      - rabbit.host=rabbitmq-appliance
      - rabbit.port=5672
      - rabbit.user=${RABBIT_APPLIANCE_USER}
      - rabbit.password=${RABBIT_APPLIANCE_PASSWORD}
      - HOST_IP_ADDRESS=${HOST_IP_ADDRESS}
      - LOG_LEVEL=DEBUG
      - logging.level.com.iquate=DEBUG
      - logging.level.c.i=DEBUG
    depends_on:
      - rabbitmq-appliance

Execute this command and wait for the appliance to restart the stack

sudo /opt/docker/stop-appliance-stack.sh true

To validate that you are using the right image

docker ps
CONTAINER ID   IMAGE                                                                 COMMAND                  CREATED       STATUS       PORTS                                                                                                                                NAMES
4a683a41d26e   91a9637526db                                                          "sh -c 'java ${JAVA_…"   5 days ago    Up 5 days    0.0.0.0:8080->8080/tcp                                                                                                        docker_metrics-server_1

  • No labels