clickhouse-grafana icon indicating copy to clipboard operation
clickhouse-grafana copied to clipboard

Implementation backend part of plugin in TypeScript

Open lunaticusgreen opened this issue 1 year ago • 2 comments

lunaticusgreen avatar Jul 12 '24 09:07 lunaticusgreen

GRAFANA_VERSION=10.3.7 docker-compose up -d grafana

returns error

grafana container unhealthy

clickhouse-grafana-v3_grafana_1 /run.sh Exit 255

docker-compose logs grafana

logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335831561Z level=debug msg="Trace: TypeError: Cannot read properties of undefined (reading 'xHeaderKey')"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335841261Z level=debug msg="    at ClickhouseClient.<anonymous> (/snapshot/dist/backend-plugin.js)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335850161Z level=debug msg="    at Generator.next (<anonymous>)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335859261Z level=debug msg="    at /snapshot/dist/backend-plugin.js"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335867961Z level=debug msg="    at new Promise (<anonymous>)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335876461Z level=debug msg="    at /snapshot/dist/backend-plugin.js"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335887961Z level=debug msg="    at ClickhouseClient.query (/snapshot/dist/backend-plugin.js)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335905061Z level=debug msg="    at /snapshot/dist/backend-plugin.js"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335956161Z level=debug msg="    at Array.map (<anonymous>)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335972561Z level=debug msg="    at ClickhouseDataService.<anonymous> (/snapshot/dist/backend-plugin.js)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335982461Z level=debug msg="    at Generator.next (<anonymous>)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.335992761Z level=debug msg="    at ClickhouseDataService.<anonymous> (/snapshot/dist/backend-plugin.js)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.336004261Z level=debug msg="    at Generator.throw (<anonymous>)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.336015061Z level=debug msg="    at rejected (/snapshot/dist/backend-plugin.js)"
logger=plugin.vertamedia-clickhouse-datasource t=2024-07-17T07:03:36.336023961Z level=debug msg="    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"

Slach avatar Jul 17 '24 07:07 Slach

Root reason of failures is old graph related alerts which deprecated in grafana 11, but still works in grafana 10

      GF_UNIFIED_ALERTING_ENABLED: false
      GF_ALERTING_ENABLED: true

we need to support both types of alerts

Slach avatar Jul 17 '24 07:07 Slach