Skip to content
Snippets Groups Projects
Verified Commit 117b8363 authored by Martin Weise's avatar Martin Weise
Browse files

Working prototype

parent 48433676
Branches
Tags
6 merge requests!345Updated docs and endpoints:,!341Fixed mapping problem where UK and FK share columns they are inserted,!339Fixed mapping problem where UK and FK share columns they are inserted,!338Fixed mapping problem where UK and FK share columns they are inserted,!334Fixed mapping problem where UK and FK share columns they are inserted,!333Fixed mapping problem where UK and FK share columns they are inserted
......@@ -18,6 +18,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": 3,
"links": [
{
"asDropdown": false,
......@@ -92,7 +93,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.2",
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
......@@ -160,7 +161,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.2",
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
......@@ -276,7 +277,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.2",
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
......@@ -306,18 +307,17 @@
"x": 0,
"y": 4
},
"id": 2,
"id": 22,
"panels": [],
"title": "Services",
"title": "UI",
"type": "row"
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "Quality of Service",
"description": "",
"fieldConfig": {
"defaults": {
"mappings": [],
......@@ -327,38 +327,34 @@
"mode": "absolute",
"steps": [
{
"color": "purple",
"color": "green",
"value": null
},
{
"color": "red",
"value": 0
"color": "#EAB839",
"value": 300
},
{
"color": "orange",
"value": 60
},
{
"color": "#EAB839",
"value": 80
"value": 600
},
{
"color": "green",
"value": 100
"color": "red",
"value": 900
}
]
},
"unit": "percent"
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 4,
"h": 3,
"w": 4,
"x": 0,
"y": 5
},
"id": 9,
"id": 17,
"options": {
"colorMode": "background",
"graphMode": "none",
......@@ -376,7 +372,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.2",
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
......@@ -385,17 +381,17 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "sum(up)*100/count(up)",
"expr": "avg(page_render_time)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Services Running",
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "QoS",
"title": "UI Response Time (avg)",
"type": "stat"
},
{
......@@ -403,72 +399,132 @@
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
"custom": {
"fillOpacity": 70,
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
{
"color": "#EAB839",
"value": 0.02
},
"lineWidth": 1
{
"color": "orange",
"value": 0.05
},
"mappings": [
{
"color": "red",
"value": 0.1
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 4,
"y": 5
},
"id": 24,
"options": {
"0": {
"index": 0,
"text": "DOWN"
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"1": {
"index": 1,
"text": "UP"
}
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"type": "value"
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "nodejs_eventloop_lag_mean_seconds",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "UI Event Lag (avg)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "",
"fieldConfig": {
"defaults": {
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"color": "blue",
"value": null
},
{
"color": "green",
"value": 1
}
]
}
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 20,
"x": 4,
"h": 3,
"w": 4,
"x": 8,
"y": 5
},
"id": 16,
"id": 25,
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": false
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"rowHeight": 0.9,
"showValue": "auto",
"tooltip": {
"mode": "single",
"sort": "none"
}
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
......@@ -476,26 +532,26 @@
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "up",
"editorMode": "code",
"expr": "nodejs_active_handles{type=\"Server\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{instance}}",
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Service QoS",
"type": "status-history"
"title": "UI Servers",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "Total used disk space in Storage Service",
"description": "",
"fieldConfig": {
"defaults": {
"mappings": [],
......@@ -510,17 +566,17 @@
}
]
},
"unit": "decbytes"
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"h": 3,
"w": 4,
"x": 0,
"y": 9
"x": 12,
"y": 5
},
"id": 17,
"id": 26,
"options": {
"colorMode": "background",
"graphMode": "none",
......@@ -534,11 +590,527 @@
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "nodejs_active_handles{type=\"Socket\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "UI Sockets",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 16,
"y": 5
},
"id": 27,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "nodejs_active_requests_total",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Active Requests",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 300
},
{
"color": "orange",
"value": 600
},
{
"color": "red",
"value": 900
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 8
},
"id": 20,
"options": {
"displayMode": "basic",
"maxVizHeight": 300,
"minVizHeight": 16,
"minVizWidth": 8,
"namePlacement": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"sizing": "auto",
"valueMode": "color"
},
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "page_render_time",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{path}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "UI Response Time per Path (avg)",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "dashed"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 256000000
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 8
},
"id": 21,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "nodejs_heap_space_size_total_bytes",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{space}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "NodeJS Heap Bytes",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 15
},
"id": 2,
"panels": [],
"title": "Services",
"type": "row"
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "Quality of Service",
"fieldConfig": {
"defaults": {
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "purple",
"value": null
},
{
"color": "red",
"value": 0
},
{
"color": "orange",
"value": 60
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "green",
"value": 100
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 0,
"y": 16
},
"id": 9,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "sum(up)*100/count(up)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Services Running",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "QoS",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "",
"fieldConfig": {
"defaults": {
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 4,
"y": 16
},
"id": 28,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "min(process_uptime_seconds)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Uptime",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [
{
"options": {
"0": {
"index": 0,
"text": "DOWN"
},
"1": {
"index": 1,
"text": "UP"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 16
},
"id": 16,
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"rowHeight": 0.9,
"showValue": "auto",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.2.2",
"targets": [
{
"datasource": {
......@@ -546,25 +1118,26 @@
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "SeaweedFS_volumeServer_total_disk_size",
"editorMode": "builder",
"expr": "up",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"legendFormat": "{{instance}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "S3 Volume",
"type": "stat"
"title": "Service QoS",
"type": "status-history"
},
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
......@@ -577,9 +1150,8 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 25,
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
......@@ -597,7 +1169,7 @@
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
......@@ -616,79 +1188,17 @@
"value": 80
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "auth-service:8080"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "data-service:8080"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "metadata-service:8080"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "metadata-service:80"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
}
]
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 13
"y": 19
},
"id": 6,
"id": 23,
"options": {
"legend": {
"calcs": [],
......@@ -701,7 +1211,7 @@
"sort": "none"
}
},
"pluginVersion": "11.2.0",
"pluginVersion": "10.4.9",
"targets": [
{
"datasource": {
......@@ -709,19 +1219,18 @@
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "process_cpu_usage",
"editorMode": "code",
"expr": "process_open_fds\n",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{instance}}",
"range": true,
"refId": "process_cpu_usage",
"refId": "process_open_fds",
"useBackend": false
}
],
"title": "CPU Usage",
"title": "File Descriptors",
"type": "timeseries"
},
{
......@@ -743,7 +1252,6 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "none",
......@@ -774,8 +1282,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
......@@ -848,7 +1355,7 @@
"h": 7,
"w": 12,
"x": 12,
"y": 13
"y": 23
},
"id": 7,
"options": {
......@@ -903,7 +1410,6 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "none",
......@@ -923,7 +1429,7 @@
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
......@@ -934,24 +1440,27 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "reqps"
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/.*search-service.*/"
"id": "byName",
"options": "auth-service:8080"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "orange",
"fixedColor": "yellow",
"mode": "fixed"
}
}
......@@ -959,14 +1468,44 @@
},
{
"matcher": {
"id": "byRegexp",
"options": "/.*analyse-service.*/"
"id": "byName",
"options": "data-service:8080"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-orange",
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "metadata-service:8080"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "metadata-service:80"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
......@@ -978,9 +1517,9 @@
"h": 7,
"w": 12,
"x": 0,
"y": 20
"y": 26
},
"id": 18,
"id": 6,
"options": {
"legend": {
"calcs": [],
......@@ -993,21 +1532,27 @@
"sort": "none"
}
},
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"editorMode": "code",
"expr": "rate(flask_http_request_duration_seconds_count{status=~\"200|201|202\",path!=\"/health\"}[$__rate_interval])",
"disableTextWrap": false,
"editorMode": "builder",
"expr": "process_cpu_usage",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{method}} {{instance}} {{path}} ({{status}})",
"legendFormat": "{{instance}}",
"range": true,
"refId": "A"
"refId": "process_cpu_usage",
"useBackend": false
}
],
"title": "Successful API Requests",
"title": "CPU Usage",
"type": "timeseries"
},
{
......@@ -1027,7 +1572,6 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "none",
......@@ -1058,8 +1602,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
......@@ -1102,7 +1645,7 @@
"h": 7,
"w": 12,
"x": 12,
"y": 20
"y": 30
},
"id": 19,
"options": {
......@@ -1136,7 +1679,6 @@
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
......@@ -1152,9 +1694,8 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"fillOpacity": 25,
"gradientMode": "none",
"hideFrom": {
"legend": false,
......@@ -1162,8 +1703,8 @@
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
......@@ -1183,62 +1724,17 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "DELETE"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "GET"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
"color": "green"
}
]
},
{
"matcher": {
"id": "byName",
"options": "HEAD"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
"unit": "reqps"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "PATCH"
"id": "byRegexp",
"options": "/.*search-service.*/"
},
"properties": [
{
......@@ -1252,28 +1748,14 @@
},
{
"matcher": {
"id": "byName",
"options": "OPTIONS"
},
"properties": [
{
"id": "color",
"value": {
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "POST"
"id": "byRegexp",
"options": "/.*analyse-service.*/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"fixedColor": "super-light-orange",
"mode": "fixed"
}
}
......@@ -1285,9 +1767,9 @@
"h": 7,
"w": 12,
"x": 0,
"y": 27
"y": 33
},
"id": 20,
"id": 18,
"options": {
"legend": {
"calcs": [],
......@@ -1296,7 +1778,7 @@
"showLegend": true
},
"tooltip": {
"mode": "single",
"mode": "multi",
"sort": "none"
}
},
......@@ -1306,23 +1788,19 @@
"type": "prometheus",
"uid": "P18F45E9DC7E75912"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "tusd_requests_total",
"fullMetaSearch": false,
"includeNullMetadata": true,
"editorMode": "code",
"expr": "rate(flask_http_request_duration_seconds_count{status=~\"200|201|202\",path!=\"/health\"}[$__rate_interval])",
"instant": false,
"legendFormat": "{{method}}",
"legendFormat": "{{method}} {{instance}} {{path}} ({{status}})",
"range": true,
"refId": "A",
"useBackend": false
"refId": "A"
}
],
"title": "Storage Service Requests",
"title": "Successful API Requests",
"type": "timeseries"
}
],
"refresh": "10s",
"refresh": "5s",
"schemaVersion": 39,
"tags": [
"provisioned",
......@@ -1332,13 +1810,13 @@
"list": []
},
"time": {
"from": "now-1h",
"from": "now-30m",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "DBRepo - Overview",
"uid": "bdz20owu8zn5se",
"version": 1,
"title": "NEW",
"uid": "bdz20owu8zn5se1",
"version": 31,
"weekStart": ""
}
\ No newline at end of file
......@@ -12,8 +12,8 @@ scrape_configs:
- job_name: 'actuator scrape'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['data-service:8080', 'metadata-service:8080', 'ui:3000']
- targets: ['data-service:8080', 'metadata-service:8080']
- job_name: 'metrics scrape'
metrics_path: '/metrics'
static_configs:
- targets: ['auth-service:8080', 'analyse-service:8080', 'search-service:8080', 'data-db-sidecar:8080', 'broker-service:15692', 'storage-service:9090', 'upload-service:8080', 'dashboard-service:3000']
- targets: ['ui:3000', 'auth-service:8080', 'analyse-service:8080', 'search-service:8080', 'data-db-sidecar:8080', 'broker-service:15692', 'storage-service:9090', 'upload-service:8080', 'dashboard-service:3000']
......@@ -2,6 +2,7 @@ FROM oven/bun:1.1.20-alpine AS build
WORKDIR /app
COPY ./bun.lockb ./bun.lockb
COPY ./package.json ./package.json
RUN bun install
......@@ -24,11 +25,13 @@ COPY ./nuxt.config.ts ./nuxt.config.ts
RUN bun run build
FROM oven/bun:1.1.20-alpine AS runtime
FROM node:18.19.0-alpine3.19 AS runtime
ARG APP_VERSION="latest"
ARG COMMIT=""
RUN apk add --no-cache curl bash
USER 1000
WORKDIR /app
......@@ -39,8 +42,8 @@ RUN chmod -R 755 /app/.output
ENV NUXT_PUBLIC_VERSION="${APP_VERSION:-}"
ENV NUXT_PUBLIC_COMMIT="${COMMIT:-}"
ENV NODE_OPTIONS="--max_old_space_size=4096"
ENV NODE_OPTIONS="--max_old_space_size=256"
EXPOSE 3000
ENTRYPOINT [ "bun", "run", ".output/server/index.mjs" ]
ENTRYPOINT [ "node", ".output/server/index.mjs" ]
a {
color: var(--v-theme-primary); }
label.native,
select.native {
display: block; }
select.native {
-webkit-appearance: listbox;
border-style: solid;
width: 100%; }
/*# sourceMappingURL=globals.css.map */
{
"version": 3,
"mappings": "AAAA,CAAE;EACA,KAAK,EAAE,sBAAsB",
"mappings": "AAAA,CAAE;EACA,KAAK,EAAE,sBAAsB;;AAG/B;aACc;EACZ,OAAO,EAAE,KAAK;;AAGhB,aAAc;EACZ,kBAAkB,EAAE,OAAO;EAC3B,YAAY,EAAE,KAAK;EACnB,KAAK,EAAE,IAAI",
"sources": ["globals.scss"],
"names": [],
"file": "globals.css"
......
a {
color: var(--v-theme-primary);
}
label.native,
select.native {
display: block;
}
select.native {
-webkit-appearance: listbox;
border-style: solid;
width: 100%;
}
No preview for this file type
......@@ -19,8 +19,7 @@ if (process.env.NODE_ENV === 'development') {
/**
* https://nuxt.com/docs/guide/concepts/rendering#hybrid-rendering
*/
const routeRules = {
}
const routeRules = {}
export default defineNuxtConfig({
app: {
......@@ -40,6 +39,8 @@ export default defineNuxtConfig({
transpile: ['vuetify'],
},
builder: 'vite',
css: [
'vuetify/lib/styles/main.sass',
'@mdi/font/css/materialdesignicons.min.css',
......@@ -121,9 +122,10 @@ export default defineNuxtConfig({
},
modules: [
'@artmizu/nuxt-prometheus',
'@nuxtjs/i18n',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@nuxtjs/i18n'
'@pinia-plugin-persistedstate/nuxt'
],
pinia: {
......
......@@ -11,6 +11,7 @@
"prod": "bun run .output/server/index.mjs"
},
"dependencies": {
"@artmizu/nuxt-prometheus": "^2.4.0",
"@fontsource/open-sans": "^5.0.24",
"@mdi/font": "^7.4.47",
"@nuxtjs/robots": "^3.0.0",
......@@ -36,7 +37,7 @@
"vue-meta": "^2.4.0",
"vue-toast-notification": "^3.1.2",
"vue3-ace-editor": "^2.2.4",
"vuetify": "^3.5.7"
"vuetify": "^3.7.2"
},
"devDependencies": {
"@nuxtjs/i18n": "^8.1.1",
......
export default defineEventHandler((event) => {
event.node.res.setHeader('Content-Type', 'text/plain');
return 'service_started 1'
})
......@@ -329,7 +329,7 @@ services:
dbrepo-storage-service:
condition: service_healthy
healthcheck:
test: wget -qO- localhost:3000 | grep "Database Repository" || exit 1
test: curl -fsSL http://127.0.0.1:3000 && curl -fsSL http://127.0.0.1:3000/health
interval: 10s
timeout: 5s
retries: 12
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment