Ctrl K
ComunidadGuías…

compose/jfr-datasource.yml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
services:
  cryostat:
    environment:
      - GRAFANA_DATASOURCE_URL=http://jfr-datasource:8080
  jfr-datasource:
    image: ${JFR_DATASOURCE_IMAGE:-quay.io/cryostat/jfr-datasource:${CRYOSTAT_VERSION:-latest}}
    hostname: jfr-datasource
    restart: unless-stopped
    deploy:
      resources:
        limits:
          cpus: "0.4"
          memory: 512m
    expose:
      - "8080"
    labels:
      io.cryostat.discovery: "true"
      io.cryostat.jmxHost: "jfr-datasource"
      io.cryostat.jmxPort: "11223"
    environment:
      JAVA_OPTS_APPEND: >-
        -XX:StartFlightRecording=filename=/tmp/,name=startup,settings=profile,disk=true,duration=30s
        -Dcom.sun.management.jmxremote.autodiscovery=true
        -Dcom.sun.management.jmxremote
        -Dcom.sun.management.jmxremote.port=11223
        -Dcom.sun.management.jmxremote.rmi.port=11223
        -Djava.rmi.server.hostname=jfr-datasource
        -Dcom.sun.management.jmxremote.authenticate=false
        -Dcom.sun.management.jmxremote.ssl=false
        -Dcom.sun.management.jmxremote.local.only=false
      CRYOSTAT_STORAGE_IGNORE_TLS: "true"
      CRYOSTAT_STORAGE_VERIFY_HOSTNAME: "true"
    healthcheck:
      test: curl --fail http://localhost:8080/ || exit 1
      retries: 3
      interval: 30s
      start_period: 10s
      timeout: 1s