Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions default_files/grafana/06_account_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -2668,6 +2668,7 @@
},
"pieType": "pie",
"reduceOptions": {
"values": true,
"calcs": [
"sum"
],
Expand All @@ -2690,7 +2691,7 @@
"editorMode": "code",
"format": "table",
"rawQuery": true,
"rawSql": "select\r\n$__timeGroup(session_end,$interval) as 'time',\r\ncase\r\n when reason_for_session_end like 'ErrGo failed to detect lineup for invasion%' then 'ErrGo failed to detect lineup for invasion' \r\n when reason_for_session_end='ErrDisabled' and (json_extract(counts, '$.METHOD_ENCOUNTER') is not NULL or json_extract(counts, '$.METHOD_GET_MAP_OBJECTS') is not NULL) then 'ErrDisabled'\r\n when reason_for_session_end='ErrDisabled' and (json_extract(counts, '$.METHOD_ENCOUNTER') is NULL and json_extract(counts, '$.METHOD_GET_MAP_OBJECTS') is NULL) then 'instantRotation (rpc18?)'\r\n else reason_for_session_end\r\nend as 'reason_end',\r\ncount(reason_for_session_end) as '.'\r\nfrom stats_accounts\r\nwhere\r\n$__timeFilter(session_end) and mode in ($mode)\r\nGROUP BY 1,reason_end\r\nORDER BY 1",
"rawSql": "select\r\n$__timeGroup(session_end,$interval) as 'time',\r\ncase\r\n when reason_for_session_end like 'ErrGo failed to detect lineup for invasion%' then 'ErrGo failed to detect lineup for invasion' \r\n when reason_for_session_end='ErrDisabled' and (json_extract(counts, '$.METHOD_ENCOUNTER') is not NULL or json_extract(counts, '$.METHOD_GET_MAP_OBJECTS') is not NULL) then 'ErrDisabled'\r\n when reason_for_session_end='ErrDisabled' and (json_extract(counts, '$.METHOD_ENCOUNTER') is NULL and json_extract(counts, '$.METHOD_GET_MAP_OBJECTS') is NULL) then 'instantRotation (rpc18?)'\r\n else reason_for_session_end\r\nend as 'reason_end',\r\ncount(reason_for_session_end) as '.'\r\nfrom stats_accounts\r\nwhere\r\n$__timeFilter(session_end) and mode in ($mode)\r\nGROUP BY reason_end\r\nORDER BY 1",
"refId": "A",
"sql": {
"columns": [
Expand Down Expand Up @@ -2779,7 +2780,7 @@
"multi": true,
"name": "mode",
"options": [],
"query": "select mode from stats_accounts",
"query": "select mode from stats_accounts group by mode",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that supposed to be select distinct(mode) from stats_accounts

"refresh": 1,
"regex": "",
"sort": 1,
Expand Down