blocky icon indicating copy to clipboard operation
blocky copied to clipboard

MySQL Dashboard not working

Open devius opened this issue 2 years ago • 3 comments

This is what I get when running dashboard on Grafana

1055: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'blocky-resolv-1.t.request_ts' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by"

devius avatar Apr 08 '22 20:04 devius

It looks like "ONLY_FULL_GROUP_BY" is set by default in MySQL but not in MariaDB

0xERR0R avatar Apr 21 '22 15:04 0xERR0R

I am facing the same issue... I have limited knowledge with databases

following is my config

queryLog:
  # optional one of: mysql, postgresql, csv, csv-client. If empty, log to console
  type: mysql
  target: blocky:blocky@tcp(192.168.155.245:33306)/blocky?charset=utf8mb4&parseTime=True&loc=Local
  # if > 0, deletes log files which are older than ... days
  logRetentionDays: 7
  creationAttempts: 3
  creationCooldown: 5s

docker-compose for mysql is as below.

version: '2'
services:
  blocky_db:
    image: mysql:latest
    volumes:
      - "./.mysql-data/db:/var/lib/mysql"
    restart: unless-stopped
    ports:
      - 33306:3306
    environment:
      MYSQL_ROOT_PASSWORD: blocky
      MYSQL_DATABASE: blocky
      MYSQL_USER: blocky
      MYSQL_PASSWORD: blocky

panks21 avatar Jul 17 '22 16:07 panks21

I dont want to disable ONLY_FULL_GROUP_BY globally and persistent. So what is the solution for mysql user? It would be great, if there would be a Grafana dashboard for blocky query for postgresql database.

Section1977 avatar Aug 07 '22 10:08 Section1977

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 06 '22 04:11 github-actions[bot]

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Feb 06 '23 04:02 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Feb 12 '23 04:02 github-actions[bot]