Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
8c35ed40
Unverified
Commit
8c35ed40
authored
Feb 12, 2021
by
Zoltán Bedi
Committed by
GitHub
Feb 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prometheus: Multiply exemplars timestamp to follow api change (#31143)
parent
a17661d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
public/app/plugins/datasource/prometheus/result_transformer.test.ts
+5
-5
public/app/plugins/datasource/prometheus/result_transformer.ts
+1
-1
No files found.
public/app/plugins/datasource/prometheus/result_transformer.test.ts
View file @
8c35ed40
...
...
@@ -492,7 +492,7 @@ describe('Prometheus Result Transformer', () => {
seriesLabels
:
{
__name__
:
'test'
},
exemplars
:
[
{
timestamp
:
1610449069957
,
timestamp
:
1610449069
.
957
,
labels
:
{
traceID
:
'5020b5bc45117f07'
},
value
:
0.002074123
,
},
...
...
@@ -517,19 +517,19 @@ describe('Prometheus Result Transformer', () => {
{
exemplars
:
[
{
timestamp
:
1610449070
00
0
,
timestamp
:
1610449070
.
0
,
value
:
5
,
},
{
timestamp
:
1610449070
00
0
,
timestamp
:
1610449070
.
0
,
value
:
1
,
},
{
timestamp
:
1610449070
500
,
timestamp
:
1610449070
.5
,
value
:
13
,
},
{
timestamp
:
1610449070
300
,
timestamp
:
1610449070
.3
,
value
:
20
,
},
],
...
...
public/app/plugins/datasource/prometheus/result_transformer.ts
View file @
8c35ed40
...
...
@@ -78,7 +78,7 @@ export function transform(
prometheusResult
.
forEach
((
exemplarData
)
=>
{
const
data
=
exemplarData
.
exemplars
.
map
((
exemplar
)
=>
{
return
{
[
TIME_SERIES_TIME_FIELD_NAME
]:
exemplar
.
timestamp
,
[
TIME_SERIES_TIME_FIELD_NAME
]:
exemplar
.
timestamp
*
1000
,
[
TIME_SERIES_VALUE_FIELD_NAME
]:
exemplar
.
value
,
...
exemplar
.
labels
,
...
exemplarData
.
seriesLabels
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment