opiproject / opi-poc

Developer Platform and PoC Work
Apache License 2.0
16 stars 29 forks source link

dh1 - apt.grafana.com stable InRelease' doesn't support architecture 'i386' #946

Closed mgheorghe closed 3 months ago

mgheorghe commented 5 months ago

the repository somehow does not look right and apt update fails

root@dh1:~# apt update Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease Hit:2 https://apt.grafana.com stable InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu jammy InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://apt.grafana.com stable InRelease' doesn't support architecture 'i386'

glimchb commented 5 months ago

please use dockers only, no apt update please see working example: https://github.com/opiproject/otel/blob/main/docker-compose.yml

  grafana:
    image: docker.io/grafana/grafana:10.2.3
    depends_on:
      - influxdb
    volumes:
      - ./config/grafana.ini:/etc/grafana/grafana.ini
      - ./config/grafana-datasources.yml:/etc/grafana/provisioning/datasources/datasource.yaml
      - ./config/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/default.yaml
      - ./config/grafana-dashboard.json:/var/lib/grafana/dashboards/myexample.json
    ports:
      - "3000:3000"
    networks:
      - opi
    healthcheck:
      test: wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
      interval: 6s
      timeout: 10s
      retries: 3

  otel-gw-collector:
    image: docker.io/otel/opentelemetry-collector:0.92.0
    command: ["--config=/etc/otel-collector-config.yaml"]
    volumes:
      - ./config/otel-collector-config.yaml:/etc/otel-collector-config.yaml:z
    ports:
      - "1888:1888"    # pprof extension
      - "8888:8888"    # Prometheus metrics exposed by the collector
      - "8889:8889"    # Prometheus exporter metrics
      - "13133:13133"  # health_check extension
      - "4317:4317"    # OTLP gRPC receiver
      - "55679:55679"  # zpages extension
    networks:
      - opi
    healthcheck:
      test: wget --no-verbose --tries=1 --spider http://localhost:8086/ping || exit 1

  prometheus:
    image: docker.io/prom/prometheus:v2.48.1
    volumes:
      - ./config/prometheus.yaml:/etc/prometheus/prometheus.yml:z
    ports:
      - "9091:9090"
    networks:
      - opi
    healthcheck:
      test: ["CMD", "wget", "http://localhost:9090"]
chan811 commented 5 months ago

removed install of prometheus and grafana with apt and will use docker compose instead

glimchb commented 3 months ago

implemented https://github.com/opiproject/lab/blob/main/docker-compose.yml