Skip to content

Help? #165

@YouveGotMeowxy

Description

@YouveGotMeowxy

I can't seem to get AutoKuma (AK) to add my services to UptimeKuma (UK). Can anyone point out what I'm messing up? For the record, I'm running Swarm.

My AK compose

  autokuma:
    hostname: 'autokuma'
    image: 'ghcr.io/bigboot/autokuma:latest'
    environment: 
      RUST_LOG: 'kuma_client=debug,autokuma=debug'
    volumes:
      - '/opt/docker/configs/autokuma/data:/data'
      - '/opt/docker/configs/autokuma/autokuma.toml:/autokuma.toml:ro'
      - '/var/run/docker.sock:/var/run/docker.sock:ro'
    deploy:
      mode: 'replicated'
      replicas: 1
      labels:
        com.ouroboros.enable: 'true'
      resources:
        limits:
          memory: '100M'
      placement:
        constraints:
          - 'node.labels.Cloud == true'
      restart_policy:
        condition: 'any'

My autokuma.toml

[kuma]

    # UptimeKuma Creds
    url                 = "http://uptimekuma:3001"
    username            = "Me"
    password            = "blah"

    # AutoKuma Settings
    docker.label_prefix = "autokuma"
    docker.source       = "Both"
    static_monitors     = "/data/static"
    log_dir             = "/data/logs"
    docker.hosts        = "unix:///var/run/docker.sock"

[snippets]

    htpc = '''
        htpc.group.name: 'HTPC'
        htpc.group.description: 'Home Theater'
        {{ container_name }}_http.http.active:         'true'
        {{ container_name }}_http.http.parent_name:    'htpc'
        {{ container_name }}_http.http.name:           '{{ container_name | capitalize }}'
        {{ container_name }}_http.http.description:    '{{ args[0] }}'
        {{ container_name }}_http.http.url:            'https://{{ container_name | lower }}.domain.com'
        {{ container_name }}_http.http.method:         'GET'
        {{ container_name }}_http.http.interval:       '60'
        {{ container_name }}_http.http.max_retries:    '1'
        {{ container_name }}_http.http.retry_interval: '60'
        {{ container_name }}_http.http.timeout:        '48'
        {{ container_name }}_http.http.max_redirects:  '0'
    '''

Service label on some services

autokuma.__htpc: 'Media Search & Add'

I add all that stuff and restart my AK and the services with those labels and then check UK... nothing.

What's wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions