Skip to content

Commit

Permalink
feat: Update dashboard panels layout and positioning (#933)
Browse files Browse the repository at this point in the history
* feat: Update dashboard panels layout and positioning

* Fix columnsOrder issue (#934)

* logsearch page -Wildcard and autocomplete support for index Search (#932)

* logsearch page -Wildcard Option, Index Search

* address PR comments

---------

Co-authored-by: Kunal Nawale <knawale@sigscalr.io>

* Return resultType matrix for range queries (#935)

Co-authored-by: Kunal Nawale <knawale@sigscalr.io>

* Feat: Promql <aggregation>_over_time funcs Completion (#929)

* Add <aggregation>_over_time funcs processing logic

* Add <aggregation>_over_time funcs parsing logic

* Add metrics prompt json

* Add unit tests

* Add e2e tests

* Remove unused code

* Add unit tests

* Update OTSDB metric ingestion url on sigclient (#939)

Co-authored-by: Kunal Nawale <knawale@sigscalr.io>

* Fix: Single line & wrap line view (#942)

* Fix frontend console errors (#938)

* Fix interleaved socket timings

* Make doSearch return a promise

---------

Co-authored-by: Sonam Gupta <71771131+sonamgupta21@users.noreply.github.com>

* Flag to prevent multiple simultaneous fetches (#944)

* added delete index functionality on clusterstats page (#943)

Co-authored-by: Sonam Gupta <71771131+sonamgupta21@users.noreply.github.com>

* Fix: Unrotated segment range checking logic (#945)

* Add qid to the log msg

* Fix unrotated segment range checking logic

* Feat: Add promql trigonometric functions (#940)

* Allow parsing promql trigonometric functions

* Add promql trigonometric functions processing logic

* Add metrics prompt json

* Add unit tests

* Fix up

* Feat: Add promql funcs predict_linear() (#946)

* Fix up

* Add promql funcs parsing logic

* Add promql funcs processing logic

* Add metrics prompt json

* Add test cases

---------

Co-authored-by: Andrew Hess <ahess@sigscalr.io>

* Remove live tail on UI (#947)

* Remove live tail on UI

* remove live tail

* Fix: Increase tolerance for approximate equality in metrics test (#949)

* Increase tolerance for approximate equality in metrics test

* Fix up

* Add metrics and traces count (#950)

* Add metrics and traces count

* address ineff assign

---------

Co-authored-by: Andrew Hess <ahess@sigscalr.io>

* Store all incoming queries to query.log (#948)

* Store all incoming queries to query.log

* optimize file handling and log restart events

* use common method for logging

* rename mu to fileMutex

* Discard stale data (#952)

* Truncate slices to discard stale data

The SegmentFileReader.deTlv in particular was holding on to stale data
and then iterating over it; sometimes leading to getting garbage data,
and other times causing a panic.

* Add basic unit test

* Update the unit test

* Fix linting

* Add promql funcs hour,minute,month,year,day_of_month,day_of_week,day_of_year,days_in_month (#937)

* Add promql funcs

promql functions hour(),minute(),month(),year(),day_of_month(),day_of_week(),day_of_year(),days_in_month()

* add testcases

* add cicd tests and update var names

* update example queries

* formatting

* address comments

* update desc

---------

Signed-off-by: Venkatesha Matam <113487319+venkateshamatam@users.noreply.github.com>
Co-authored-by: Andrew Hess <ahess@sigscalr.io>

* Fix metrics test (#956)

Signed-off-by: Kunal Nawale <knawale@sigscalr.io>

* Refactor http errors (#955)

* Refactor sending http errors

* Add unit test

---------

Co-authored-by: Kunal Nawale <knawale@sigscalr.io>

* Refactor resizing a slice (#954)

* Add util to resize a slice

* Expand to capacity to avoid unnecessary appending

* Refactor to use ResizeSlice() util

---------

Co-authored-by: Kunal Nawale <knawale@sigscalr.io>

* Persistent Available Fields (#951)

Co-authored-by: Kunal Nawale <knawale@sigscalr.io>

* release 0.2.8 (#957)

Signed-off-by: Kunal Nawale <knawale@sigscalr.io>

* Update version.go (#959)

* fix: increase width by 1

* fix: increased the width

* fix: reverted the previous dashboard.js

* Added gridstack.all.js.map (#969)

* fix: formatting

* fix: formatting

---------

Signed-off-by: Venkatesha Matam <113487319+venkateshamatam@users.noreply.github.com>
Signed-off-by: Kunal Nawale <knawale@sigscalr.io>
Co-authored-by: Kunal Nawale <knawale@sigscalr.io>
Co-authored-by: Jiale Fang <67371917+Jiale-Fang@users.noreply.github.com>
Co-authored-by: Sunita <skawane@sigscalr.io>
Co-authored-by: Venkatesha Matam <113487319+venkateshamatam@users.noreply.github.com>
Co-authored-by: Sonam Gupta <71771131+sonamgupta21@users.noreply.github.com>
Co-authored-by: Andrew Hess <ahess@sigscalr.io>
  • Loading branch information
7 people committed May 29, 2024
1 parent 9d681fa commit 79ab40d
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 20 deletions.
143 changes: 142 additions & 1 deletion defaultDBs/details/10329b95-47a8-48df-8b1d-0a0a01ec6c42.json
Original file line number Diff line number Diff line change
@@ -1 +1,142 @@
{"description":"Sigscalr Ingestion Dashboard","name":"Sigscalr Ingestion DB","panels":[{"chartType":"number","dataType":"TB","description":"","gridpos":{"h":211,"w":450.586,"wPercent":0.39594551845342707,"x":10,"y":20},"name":"Total Ingested Volume","panelId":"45b901cf-c465-4249-8879-af6042370f7b","panelIndex":0,"queryData":{"end":"now","query":"ss_current_bytes_received","start":"now-1h"},"queryType":"metrics","unit":"data"},{"chartType":"number","dataType":"TB","description":"Current On Disk Bytes","gridpos":{"h":211,"w":437.695,"wPercent":0.3846177504393673,"x":470.586,"y":20},"name":"SigScalr Storage Used","panelId":"060afc8a-2e14-41ff-9c43-90b9c20f0832","panelIndex":1,"queryData":{"end":"now","query":"ss_current_on_disk_bytes","start":"now-1h"},"queryType":"metrics","unit":"data"},{"chartType":"number","dataType":"none","description":"Compression Ratio","gridpos":{"h":211,"w":202.08163786008228,"wPercent":0.1775761316872428,"x":918.281,"y":20},"name":"Compression Ratio","panelId":"20a5c2a4-129c-4778-ae20-ca24cb35a306","panelIndex":2,"queryData":{"end":"now","query":"ss_current_bytes_received/ss_current_on_disk_bytes","start":"now-1h"},"queryType":"metrics","startDate":"now-1h","unit":"misc"},{"chartType":"Line Chart","dataType":"","description":"","gridpos":{"h":256,"w":1128.6847840416303,"wPercent":0.9918143972246313,"x":10,"y":241},"name":"Ingested Volume/min","panelId":"ce5cc4d8-4c3e-4b55-9d7d-97f46815ff0a","panelIndex":3,"queryData":{"end":"now","query":"deriv(ss_current_bytes_received[2m])*60","start":"now-1h"},"queryType":"metrics","startDate":"now-1h","unit":""},{"chartType":"Line Chart","dataType":"","description":"OnDiskBytesPerMinute","gridpos":{"h":250,"w":564.2330540746383,"wPercent":0.49581111957349583,"x":585.966488956588,"y":507},"name":"OnDiskBytesPerMinute","panelId":"658e9c6a-0466-4553-88ff-46fdf63dc3c2","panelIndex":4,"queryData":{"end":"now","query":"deriv(ss_current_on_disk_bytes[2m])*60","start":"now-1h"},"queryType":"metrics","startDate":"now-1h","unit":""},{"chartType":"Line Chart","dataType":"","description":"","gridpos":{"h":250,"w":565.966488956588,"wPercent":0.49733434881949734,"x":10,"y":507},"name":"EventsPerMinute","panelId":"c108e768-9086-4461-aa29-b21553614af7","panelIndex":5,"queryData":{"end":"now","query":"deriv(ss_current_event_count[2m])*60","start":"now-1h"},"queryType":"metrics","unit":""}],"timeRange":"Last 1 Hr"}
{
"description": "Sigscalr Ingestion Dashboard",
"name": "Sigscalr Ingestion DB",
"panels": [
{
"chartType": "number",
"dataType": "TB",
"description": "",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.39594551845342707,
"x": 0,
"y": 0
},
"name": "Total Ingested Volume",
"panelId": "45b901cf-c465-4249-8879-af6042370f7b",
"panelIndex": 0,
"queryData": {
"end": "now",
"query": "ss_current_bytes_received",
"start": "now-1h"
},
"queryType": "metrics",
"unit": "data"
},
{
"chartType": "number",
"dataType": "TB",
"description": "Current On Disk Bytes",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.3846177504393673,
"x": 0,
"y": 6
},
"name": "SigScalr Storage Used",
"panelId": "060afc8a-2e14-41ff-9c43-90b9c20f0832",
"panelIndex": 1,
"queryData": {
"end": "now",
"query": "ss_current_on_disk_bytes",
"start": "now-1h"
},
"queryType": "metrics",
"unit": "data"
},
{
"chartType": "number",
"dataType": "none",
"description": "Compression Ratio",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.1775761316872428,
"x": 3,
"y": 0
},
"name": "Compression Ratio",
"panelId": "20a5c2a4-129c-4778-ae20-ca24cb35a306",
"panelIndex": 2,
"queryData": {
"end": "now",
"query": "ss_current_bytes_received/ss_current_on_disk_bytes",
"start": "now-1h"
},
"queryType": "metrics",
"startDate": "now-1h",
"unit": "misc"
},
{
"chartType": "Line Chart",
"dataType": "",
"description": "",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.9918143972246313,
"x": 3,
"y": 6
},
"name": "Ingested Volume/min",
"panelId": "ce5cc4d8-4c3e-4b55-9d7d-97f46815ff0a",
"panelIndex": 3,
"queryData": {
"end": "now",
"query": "deriv(ss_current_bytes_received[2m])*60",
"start": "now-1h"
},
"queryType": "metrics",
"startDate": "now-1h",
"unit": ""
},
{
"chartType": "Line Chart",
"dataType": "",
"description": "OnDiskBytesPerMinute",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.49581111957349583,
"x": 6,
"y": 0
},
"name": "OnDiskBytesPerMinute",
"panelId": "658e9c6a-0466-4553-88ff-46fdf63dc3c2",
"panelIndex": 4,
"queryData": {
"end": "now",
"query": "deriv(ss_current_on_disk_bytes[2m])*60",
"start": "now-1h"
},
"queryType": "metrics",
"startDate": "now-1h",
"unit": ""
},
{
"chartType": "Line Chart",
"dataType": "",
"description": "",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.49733434881949734,
"x": 6,
"y": 6
},
"name": "EventsPerMinute",
"panelId": "c108e768-9086-4461-aa29-b21553614af7",
"panelIndex": 5,
"queryData": {
"end": "now",
"query": "deriv(ss_current_event_count[2m])*60",
"start": "now-1h"
},
"queryType": "metrics",
"unit": ""
}
],
"timeRange": "Last 1 Hr"
}
32 changes: 16 additions & 16 deletions defaultDBs/details/53cb3dde-fd78-4253-808c-18e4077ef0f1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"dataType": "",
"description": "",
"gridpos": {
"h": 307,
"w": 599,
"h": 3,
"w": 6,
"wPercent": 0.5141630901287554,
"x": 10,
"y": 20
"x": 0,
"y": 0
},
"logLinesViewType": "Table view",
"name": "Logs Table",
Expand All @@ -35,11 +35,11 @@
"dataType": "",
"description": "",
"gridpos": {
"h": 307,
"w": 599,
"h": 3,
"w": 6,
"wPercent": 0.5141630901287554,
"x": 619,
"y": 20
"x": 0,
"y": 6
},
"name": "Pie Chart",
"panelId": "da7fad9a-56c6-47e7-ab25-ea28498ba463",
Expand All @@ -61,11 +61,11 @@
"dataType": "none",
"description": "",
"gridpos": {
"h": 325,
"w": 601,
"h": 3,
"w": 6,
"wPercent": 0.5158798283261803,
"x": 618,
"y": 337
"x": 3,
"y": 0
},
"name": "Big Number",
"panelId": "86f8f0f1-3f57-4db7-ad9c-c368511ce12c",
Expand All @@ -87,11 +87,11 @@
"dataType": "",
"description": "",
"gridpos": {
"h": 325.727,
"w": 598,
"h": 3,
"w": 6,
"wPercent": 0.5133047210300429,
"x": 10,
"y": 337
"x": 3,
"y": 6
},
"name": "Bar Chart",
"panelId": "c0ecaf3c-b6d4-4be4-a4df-0ff25e771a2d",
Expand Down
77 changes: 76 additions & 1 deletion defaultDBs/details/a28f485c-4747-4024-bb6b-d230f101f852.json
Original file line number Diff line number Diff line change
@@ -1 +1,76 @@
{"description":"Sigscalr Query Dashboard","name":"Sigscalr Query DB","panels":[{"chartType":"number","dataType":"none","description":"","gridpos":{"h":250,"w":565.966488956588,"wPercent":0.49733434881949734,"x":10,"y":20},"name":"Num of Queries Since last restart","panelId":"9faec19a-6bf1-4eac-81a7-50b24ad819bb","panelIndex":0,"queryData":{"end":"now","query":"ss_query_count_ratio_total","start":"now-1h"},"queryType":"metrics","startDate":"now-1h","unit":"misc"},{"chartType":"Line Chart","dataType":"","description":"","gridpos":{"h":250,"w":565.966488956588,"wPercent":0.49733434881949734,"x":585.966488956588,"y":20},"name":"Queries Per Minute","panelId":"79e65fec-cbc8-445e-8d6f-c1df4fb24cae","panelIndex":1,"queryData":{"end":"now","query":"rate(ss_query_count_ratio_total[5m])*60","start":"now-1h"},"queryType":"metrics","startDate":"now-1h","unit":""},{"chartType":"Line Chart","dataType":"","description":"","gridpos":{"h":250,"w":1141.6090114242193,"wPercent":1.003171363290175,"x":10,"y":280},"name":"Query Latency","panelId":"222fa2a7-3cab-43b4-8167-1b35cd0831c0","panelIndex":2,"queryData":{"end":"now","query":"avg(ss_query_latency_ms)","start":"now-1h"},"queryType":"metrics","startDate":"now-1h","unit":""}],"timeRange":"Last 1 Hr"}
{
"description": "Sigscalr Query Dashboard",
"name": "Sigscalr Query DB",
"panels": [
{
"chartType": "number",
"dataType": "none",
"description": "",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.49733434881949734,
"x": 0,
"y": 0
},
"name": "Num of Queries Since last restart",
"panelId": "9faec19a-6bf1-4eac-81a7-50b24ad819bb",
"panelIndex": 0,
"queryData": {
"end": "now",
"query": "ss_query_count_ratio_total",
"start": "now-1h"
},
"queryType": "metrics",
"startDate": "now-1h",
"unit": "misc"
},
{
"chartType": "Line Chart",
"dataType": "",
"description": "",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 0.49733434881949734,
"x": 0,
"y": 6
},
"name": "Queries Per Minute",
"panelId": "79e65fec-cbc8-445e-8d6f-c1df4fb24cae",
"panelIndex": 1,
"queryData": {
"end": "now",
"query": "rate(ss_query_count_ratio_total[5m])*60",
"start": "now-1h"
},
"queryType": "metrics",
"startDate": "now-1h",
"unit": ""
},
{
"chartType": "Line Chart",
"dataType": "",
"description": "",
"gridpos": {
"h": 3,
"w": 6,
"wPercent": 1.003171363290175,
"x": 3,
"y": 0
},
"name": "Query Latency",
"panelId": "222fa2a7-3cab-43b4-8167-1b35cd0831c0",
"panelIndex": 2,
"queryData": {
"end": "now",
"query": "avg(ss_query_latency_ms)",
"start": "now-1h"
},
"queryType": "metrics",
"startDate": "now-1h",
"unit": ""
}
],
"timeRange": "Last 1 Hr"
}
Loading

0 comments on commit 79ab40d

Please sign in to comment.