opensearch-project / alerting

📟 Get notified when your data meets certain conditions by setting up monitors, alerts, and notifications
https://opensearch.org/docs/latest/monitoring-plugins/alerting/index/
Apache License 2.0
60 stars 102 forks source link

[BUG] No existing channels. but i have a channel #1557

Open mjk-141 opened 4 months ago

mjk-141 commented 4 months ago

Hi, First, I create a monitor and try to get notified via the trigger's action, but it says the channel doesn't exist. image but i have 1 channel. image So I tried recreating the channel, but it still says it doesn't exist. and im running in a Docker Compose environment. Below is the docker-compose file I am using:

services:
  opensearch:
    image: opensearchproject/opensearch:latest
    container_name: opensearch_container
    environment:
      - discovery.type=single-node
      - bootstrap.memory_lock=true # Disable JVM heap memory swapping
      - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Set min and max JVM heap sizes to at least 50% of system RAM
      - OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}
    ulimits:
      memlock:
        soft: -1 # Set memlock to unlimited (no soft or hard limit)
        hard: -1
      nofile:
        soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536
        hard: 65536
    networks:
      - efk_network
    volumes:
      - "./opensearch-data:/usr/share/opensearch/data"
    ports:
      - "9200:9200"
    expose:
      - 9200
    restart: always

  opensearch-dashboard:
    image: opensearchproject/opensearch-dashboards:latest
    container_name: opensearch_dashboard_container
    networks:
      - efk_network
    ports:
      - "5601:5601"
    expose:
      - "5601"
    environment:
      - 'OPENSEARCH_HOSTS="https://opensearch:9200/"'
    restart: always

networks:
  efk_network:
    driver: bridge

If I've missed something, please let me know. Thanks!

lexxxel commented 4 months ago

same here

evnct commented 4 months ago

Replicated. I Was checking Opensearch out specifically because of these channels. Does this happen on v2.13.0 as well?

lexxxel commented 4 months ago

I can only confirm this with v2.14.0. Once upon a time it did work, but I have not validated 2.13.x

Mihailov-SA commented 3 months ago

Same issue here.

I've managed to fix this by downgrading the dashboards package to 2.13.0

$ sudo apt list --installed | grep opensearch
opensearch-dashboards/now 2.13.0 amd64 [installed,local]
opensearch/now 2.14.0 amd64 [installed,local]
vinylen commented 3 months ago

Confirmed here as well, OpenSearch & Opensearch-Dashboards 2.14.0

dblock commented 3 months ago

Looks like a regression, maybe someone can bisect down to a change?

Catch All Triage - 1 2 3 4 5 6

maaaax commented 1 week ago

Might be fixed already Backport 2.x Refactored code to account for notifications server features API change