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
cde4891e
Commit
cde4891e
authored
2 years ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Monitoring component:
- Fixed hardcoded table name in SQL statement
parent
780f5022
No related branches found
No related tags found
2 merge requests
!54
Release 2.0.0
,
!47
Fixes for Device, Monitoring and OFC'22 tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/monitoring/service/MonitoringServiceServicerImpl.py
+1
-1
1 addition, 1 deletion
src/monitoring/service/MonitoringServiceServicerImpl.py
with
1 addition
and
1 deletion
src/monitoring/service/MonitoringServiceServicerImpl.py
+
1
−
1
View file @
cde4891e
...
...
@@ -592,7 +592,7 @@ class MonitoringServiceServicerImpl(MonitoringServiceServicer):
LOGGER
.
info
(
'
GetInstantKpi error: KpiID({:s}): not found in database
'
.
format
(
str
(
kpi_id
)))
response
.
kpi_id
.
kpi_id
.
uuid
=
"
NoID
"
else
:
query
=
f
"
SELECT kpi_id, timestamp, kpi_value FROM
monitoring
WHERE kpi_id =
'
{
kpi_id
}
'
"
\
query
=
f
"
SELECT kpi_id, timestamp, kpi_value FROM
{
METRICSDB_TABLE
}
WHERE kpi_id =
'
{
kpi_id
}
'
"
\
f
"
LATEST ON timestamp PARTITION BY kpi_id
"
data
=
self
.
metrics_db
.
run_query
(
query
)
LOGGER
.
debug
(
data
)
...
...
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