AutoKuma icon indicating copy to clipboard operation
AutoKuma copied to clipboard

Experimental Support for Creating Notifications/Docker Hosts/Status Pages/Tags

Open BigBoot opened this issue 1 year ago • 3 comments

Current Status:

Create Assign to Monitor Notes
Docker Host
Notification ⚠️* Notifications are a mess on the API side, properties get duplicated sometimes multiple times resulting in definitions always being out of date, besides that it seems to work fine
Status Page ⛔︎ ⛔︎ A lot of nested settings. It would probably be nicer to assign pages on the monitor properties rather than having to maintain a list of monitors on the status pages...
Tags

BigBoot avatar Sep 05 '24 18:09 BigBoot

Is this available in the latest release? Cause I'm getting:

WARN [autokuma::sync] Encountered error during sync: Error while trying to parse labels: 
unknown variant `tag`, expected one of 
`group`, `http`, `port`, `ping`, `keyword`, `json-query`, `grpc-keyword`, `dns`, `docker`, `real-browser`, `push`, `steam`, `gamedig`, `mqtt`, `kafka-producer`, `sqlserver`, `postgres`, `mysql`, `mongodb`, `radius`, `redis`, `tailscale-ping

for this line:

      - kuma.${GROUP_SLUG}.tag.name=${GROUP}

Running with:

AutoKuma: v0.8.0

tomerh2001 avatar Dec 25 '24 18:12 tomerh2001

No, they're only available on master for now

BigBoot avatar Dec 25 '24 18:12 BigBoot

~~I'm unable to assign a docker host to a monitor using the guidance provided in the README, I just get the error "Failed to load docker host config" (and when checking the monitor, the docker host is empty)~~

~~I believe the following snippet should function correctly:~~

AUTOKUMA__SNIPPETS__WEB="{# Assign the first snippet arg to args to make access easier #}
{% set args = args[0] %}
{# We need to compare the host and set the docker host appropriately #}
{% set sysname = system_info['Name'] %}

{# Create the docker host #}
{{sysname}}.docker_host.name: {{ sysname }}
{{sysname}}.docker_host.connection_type: tcp
{{sysname}}.docker_host.path: http://{{ sysname }}:2375

{{ container_name }}_http_ext.http.name: {{ container_name }} HTTP
{{ container_name }}_http_ext.http.url: https://{{ args.url_ext }} 

{{ container_name }}_http_int.http.name: {{ container_name }} HTTP (Internal)
{{ container_name }}_http_int.http.url:  http://{{ sysname }}:{{ args.port_int }}

{{ container_name }}_docker.docker.name: {{ container_name }} Docker
{{ container_name }}_docker.docker_host_name: {{ sysname }}
{{ container_name }}_docker.docker.docker_container: {{ container_name }}"

~~The docker host is correctly created by AutoKuma and functions correctly (I can manually assign it to the monitor and everything works well), it just isn't being set in the monitor.~~


EDIT: Oops, I made a typo in the snippet 🤦🏻: {{ container_name }}_docker.docker_host_name should be {{ container_name }}_docker.docker.docker_host_name

That's resolved my issue - user error!

SootyOwl avatar Jun 24 '25 15:06 SootyOwl