Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
de4b46c3
Commit
de4b46c3
authored
2 years ago
by
Carlos Natalino Da Silva
Browse files
Options
Downloads
Patches
Plain Diff
Creating a dashboard backup.
parent
44f9b762
No related branches found
No related tags found
2 merge requests
!54
Release 2.0.0
,
!4
Compute component:
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
deploy.sh
+5
-1
5 additions, 1 deletion
deploy.sh
manifests/webuiservice.yaml
+2
-2
2 additions, 2 deletions
manifests/webuiservice.yaml
src/webui/grafana_backup_dashboard.json
+320
-0
320 additions, 0 deletions
src/webui/grafana_backup_dashboard.json
with
327 additions
and
3 deletions
deploy.sh
+
5
−
1
View file @
de4b46c3
...
...
@@ -252,7 +252,11 @@ if [[ "$TFS_COMPONENTS" == *"webui"* ]] && [[ "$TFS_COMPONENTS" == *"monitoring"
"isDefault": true,
"jsonData" : {
"sslmode" : "disable",
"postgresVersion" : 1100
"postgresVersion" : 1100,
"tlsAuth" : false,
"tlsAuthWithCACert": false,
"tlsConfigurationMethod": "file-path",
"tlsSkipVerify": true
},
"secureJsonFields" : {
"password" : true
...
...
This diff is collapsed.
Click to expand it.
manifests/webuiservice.yaml
+
2
−
2
View file @
de4b46c3
...
...
@@ -40,7 +40,7 @@ spec:
-
name
:
LOG_LEVEL
value
:
"
DEBUG"
-
name
:
WEBUISERVICE_SERVICE_BASEURL_HTTP
value
:
"
/"
value
:
"
/
webui/
"
readinessProbe
:
httpGet
:
path
:
/healthz/ready
...
...
@@ -61,7 +61,7 @@ spec:
cpu
:
700m
memory
:
1024Mi
-
name
:
grafana
image
:
grafana/grafana:8.
2.6
image
:
grafana/grafana:8.
5.11
imagePullPolicy
:
IfNotPresent
ports
:
-
containerPort
:
3000
...
...
This diff is collapsed.
Click to expand it.
src/webui/grafana_backup_dashboard.json
0 → 100644
+
320
−
0
View file @
de4b46c3
{
"annotations"
:
{
"list"
:
[
{
"builtIn"
:
1
,
"datasource"
:
"-- Grafana --"
,
"enable"
:
true
,
"hide"
:
true
,
"iconColor"
:
"rgba(0, 211, 255, 1)"
,
"name"
:
"Annotations & Alerts"
,
"target"
:
{
"limit"
:
100
,
"matchAny"
:
false
,
"tags"
:
[],
"type"
:
"dashboard"
},
"type"
:
"dashboard"
}
]
},
"editable"
:
true
,
"fiscalYearStartMonth"
:
0
,
"gnetId"
:
null
,
"graphTooltip"
:
0
,
"id"
:
1
,
"iteration"
:
1664282779131
,
"links"
:
[],
"liveNow"
:
false
,
"panels"
:
[
{
"datasource"
:
null
,
"fieldConfig"
:
{
"defaults"
:
{
"color"
:
{
"mode"
:
"palette-classic"
},
"custom"
:
{
"axisLabel"
:
""
,
"axisPlacement"
:
"auto"
,
"barAlignment"
:
0
,
"drawStyle"
:
"line"
,
"fillOpacity"
:
0
,
"gradientMode"
:
"none"
,
"hideFrom"
:
{
"legend"
:
false
,
"tooltip"
:
false
,
"viz"
:
false
},
"lineInterpolation"
:
"smooth"
,
"lineWidth"
:
1
,
"pointSize"
:
5
,
"scaleDistribution"
:
{
"type"
:
"linear"
},
"showPoints"
:
"never"
,
"spanNulls"
:
false
,
"stacking"
:
{
"group"
:
"A"
,
"mode"
:
"none"
},
"thresholdsStyle"
:
{
"mode"
:
"off"
}
},
"mappings"
:
[],
"thresholds"
:
{
"mode"
:
"absolute"
,
"steps"
:
[
{
"color"
:
"green"
,
"value"
:
null
},
{
"color"
:
"red"
,
"value"
:
80
}
]
}
},
"overrides"
:
[
{
"matcher"
:
{
"id"
:
"byRegexp"
,
"options"
:
".* PACKETS_.*"
},
"properties"
:
[
{
"id"
:
"custom.axisPlacement"
,
"value"
:
"left"
},
{
"id"
:
"unit"
,
"value"
:
"pps"
},
{
"id"
:
"custom.axisLabel"
,
"value"
:
"Packets / sec"
},
{
"id"
:
"custom.axisSoftMin"
,
"value"
:
0
}
]
},
{
"matcher"
:
{
"id"
:
"byRegexp"
,
"options"
:
".* BYTES_.*"
},
"properties"
:
[
{
"id"
:
"custom.axisPlacement"
,
"value"
:
"right"
},
{
"id"
:
"unit"
,
"value"
:
"Bps"
},
{
"id"
:
"custom.axisLabel"
,
"value"
:
"Bytes / sec"
},
{
"id"
:
"custom.axisSoftMin"
,
"value"
:
0
}
]
}
]
},
"gridPos"
:
{
"h"
:
19
,
"w"
:
24
,
"x"
:
0
,
"y"
:
0
},
"id"
:
2
,
"options"
:
{
"legend"
:
{
"calcs"
:
[
"first"
,
"min"
,
"mean"
,
"max"
,
"lastNotNull"
],
"displayMode"
:
"table"
,
"placement"
:
"right"
},
"tooltip"
:
{
"mode"
:
"multi"
}
},
"targets"
:
[
{
"format"
:
"time_series"
,
"group"
:
[],
"hide"
:
false
,
"metricColumn"
:
"kpi_value"
,
"rawQuery"
:
false
,
"rawSql"
:
"SELECT
\n
timestamp AS
\"
time
\"
,
\n
kpi_value AS metric,
\n
kpi_value AS
\"
kpi_value
\"\n
FROM monitoring
\n
WHERE
\n
$__timeFilter(timestamp) AND
\n
device_id = $device_id AND
\n
endpoint_id = $endpoint_id
\n
ORDER BY 1,2"
,
"refId"
:
"A"
,
"select"
:
[
[
{
"params"
:
[
"kpi_value"
],
"type"
:
"column"
},
{
"params"
:
[
"avg"
],
"type"
:
"aggregate"
},
{
"params"
:
[
"kpi_value"
],
"type"
:
"alias"
}
]
],
"table"
:
"monitoring"
,
"timeColumn"
:
"timestamp"
,
"where"
:
[
{
"name"
:
"$__timeFilter"
,
"params"
:
[],
"type"
:
"macro"
},
{
"name"
:
""
,
"params"
:
[
"device_id"
,
"="
,
"$device_id"
],
"type"
:
"expression"
},
{
"name"
:
""
,
"params"
:
[
"endpoint_id"
,
"="
,
"$endpoint_id"
],
"type"
:
"expression"
}
]
}
],
"title"
:
"L3 Monitoring Packets/Bytes Received/Sent"
,
"transformations"
:
[],
"type"
:
"timeseries"
}
],
"refresh"
:
""
,
"schemaVersion"
:
32
,
"style"
:
"dark"
,
"tags"
:
[],
"templating"
:
{
"list"
:
[
{
"allValue"
:
null
,
"current"
:
{
"selected"
:
true
,
"text"
:
[
"R1-EMU"
],
"value"
:
[
"R1-EMU"
]
},
"datasource"
:
null
,
"definition"
:
"SELECT DISTINCT device_id FROM monitoring;"
,
"description"
:
null
,
"error"
:
null
,
"hide"
:
0
,
"includeAll"
:
true
,
"label"
:
"Device"
,
"multi"
:
true
,
"name"
:
"device_id"
,
"options"
:
[],
"query"
:
"SELECT DISTINCT device_id FROM monitoring;"
,
"refresh"
:
2
,
"regex"
:
""
,
"skipUrlSync"
:
false
,
"sort"
:
0
,
"type"
:
"query"
},
{
"allValue"
:
null
,
"current"
:
{
"selected"
:
true
,
"text"
:
[
"13/1/2"
],
"value"
:
[
"13/1/2"
]
},
"datasource"
:
null
,
"definition"
:
"SELECT DISTINCT endpoint_id FROM monitoring WHERE device_id IN (${device_id})"
,
"description"
:
null
,
"error"
:
null
,
"hide"
:
0
,
"includeAll"
:
true
,
"label"
:
"EndPoint"
,
"multi"
:
true
,
"name"
:
"endpoint_id"
,
"options"
:
[],
"query"
:
"SELECT DISTINCT endpoint_id FROM monitoring WHERE device_id IN (${device_id})"
,
"refresh"
:
2
,
"regex"
:
""
,
"skipUrlSync"
:
false
,
"sort"
:
0
,
"type"
:
"query"
},
{
"allValue"
:
null
,
"current"
:
{
"selected"
:
true
,
"text"
:
[
"All"
],
"value"
:
[
"$__all"
]
},
"datasource"
:
null
,
"definition"
:
"SELECT DISTINCT kpi_sample_type FROM monitoring;"
,
"description"
:
null
,
"error"
:
null
,
"hide"
:
0
,
"includeAll"
:
true
,
"label"
:
"Kpi Sample Type"
,
"multi"
:
true
,
"name"
:
"kpi_sample_type"
,
"options"
:
[],
"query"
:
"SELECT DISTINCT kpi_sample_type FROM monitoring;"
,
"refresh"
:
2
,
"regex"
:
""
,
"skipUrlSync"
:
false
,
"sort"
:
0
,
"type"
:
"query"
}
]
},
"time"
:
{
"from"
:
"now-5m"
,
"to"
:
"now"
},
"timepicker"
:
{},
"timezone"
:
""
,
"title"
:
"L3 Monitoring"
,
"uid"
:
"tf-l3-monit"
,
"version"
:
3
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment