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
3d17d638
Unverified
Commit
3d17d638
authored
Apr 28, 2020
by
Dieter Plaetinck
Committed by
GitHub
Apr 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Metrictank: Fix meta inspector consolidator field names (#23838)
to match
https://github.com/grafana/metrictank/pull/1798
parent
94e28cb6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
public/app/plugins/datasource/graphite/MetricTankMetaInspector.tsx
+1
-1
public/app/plugins/datasource/graphite/meta.ts
+2
-2
public/app/plugins/datasource/graphite/specs/datasource.test.ts
+4
-4
public/app/plugins/datasource/graphite/types.ts
+2
-2
No files found.
public/app/plugins/datasource/graphite/MetricTankMetaInspector.tsx
View file @
3d17d638
...
...
@@ -20,7 +20,7 @@ export class MetricTankMetaInspector extends PureComponent<Props, State> {
const
buckets
=
parseSchemaRetentions
(
meta
[
'schema-retentions'
]);
const
rollupNotice
=
getRollupNotice
([
meta
]);
const
runtimeNotice
=
getRuntimeConsolidationNotice
([
meta
]);
const
normFunc
=
(
meta
[
'consolidat
e
-normfetch'
]
||
''
).
replace
(
'Consolidator'
,
''
);
const
normFunc
=
(
meta
[
'consolidat
or
-normfetch'
]
||
''
).
replace
(
'Consolidator'
,
''
);
let
totalSeconds
=
0
;
...
...
public/app/plugins/datasource/graphite/meta.ts
View file @
3d17d638
...
...
@@ -38,7 +38,7 @@ export function getRollupNotice(metaList: MetricTankSeriesMeta[]): QueryResultMe
if
(
archiveIndex
>
0
)
{
const
schema
=
parseSchemaRetentions
(
meta
[
'schema-retentions'
]);
const
intervalString
=
schema
[
archiveIndex
].
interval
;
const
func
=
meta
[
'consolidat
e
-normfetch'
].
replace
(
'Consolidator'
,
''
);
const
func
=
meta
[
'consolidat
or
-normfetch'
].
replace
(
'Consolidator'
,
''
);
return
{
text
:
`Data is rolled up, aggregated over
${
intervalString
}
using
${
func
}
function`
,
...
...
@@ -56,7 +56,7 @@ export function getRuntimeConsolidationNotice(metaList: MetricTankSeriesMeta[]):
const
runtimeNr
=
meta
[
'aggnum-rc'
];
if
(
runtimeNr
>
0
)
{
const
func
=
meta
[
'consolidat
e
-rc'
].
replace
(
'Consolidator'
,
''
);
const
func
=
meta
[
'consolidat
or
-rc'
].
replace
(
'Consolidator'
,
''
);
return
{
text
:
`Data is runtime consolidated,
${
runtimeNr
}
datapoints combined using
${
func
}
function`
,
...
...
public/app/plugins/datasource/graphite/specs/datasource.test.ts
View file @
3d17d638
...
...
@@ -58,8 +58,8 @@ describe('graphiteDatasource', () => {
'aggnum-rc'
:
7
,
'archive-interval'
:
3600
,
'archive-read'
:
1
,
'consolidat
e
-normfetch'
:
'AverageConsolidator'
,
'consolidat
e
-rc'
:
'AverageConsolidator'
,
'consolidat
or
-normfetch'
:
'AverageConsolidator'
,
'consolidat
or
-rc'
:
'AverageConsolidator'
,
count
:
1
,
'schema-name'
:
'wpUsageMetrics'
,
'schema-retentions'
:
'1h:35d:6h:2,2h:2y:6h:2'
,
...
...
@@ -74,8 +74,8 @@ describe('graphiteDatasource', () => {
'aggnum-rc'
:
0
,
'archive-interval'
:
3600
,
'archive-read'
:
0
,
'consolidat
e
-normfetch'
:
'AverageConsolidator'
,
'consolidat
e
-rc'
:
'NoneConsolidator'
,
'consolidat
or
-normfetch'
:
'AverageConsolidator'
,
'consolidat
or
-rc'
:
'NoneConsolidator'
,
count
:
1
,
'schema-name'
:
'wpUsageMetrics'
,
'schema-retentions'
:
'1h:35d:6h:2,2h:2y:6h:2'
,
...
...
public/app/plugins/datasource/graphite/types.ts
View file @
3d17d638
...
...
@@ -25,9 +25,9 @@ export interface MetricTankSeriesMeta {
'archive-read'
:
number
;
'archive-interval'
:
number
;
'aggnum-norm'
:
number
;
'consolidat
e
-normfetch'
:
string
;
//"MaximumConsolidator",
'consolidat
or
-normfetch'
:
string
;
//"MaximumConsolidator",
'aggnum-rc'
:
number
;
'consolidat
e
-rc'
:
string
;
//"MaximumConsolidator",
'consolidat
or
-rc'
:
string
;
//"MaximumConsolidator",
count
:
number
;
}
...
...
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