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
76e4b7ce
Commit
76e4b7ce
authored
Aug 14, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
8499d32d
deb245f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
pkg/api/cloudwatch/metrics.go
+13
-11
public/app/features/dashboard/dynamic_dashboard_srv.ts
+2
-1
public/app/features/dashboard/specs/dynamic_dashboard_srv_specs.ts
+1
-0
No files found.
pkg/api/cloudwatch/metrics.go
View file @
76e4b7ce
...
@@ -28,17 +28,18 @@ var customMetricsDimensionsMap map[string]map[string]map[string]*CustomMetricsCa
...
@@ -28,17 +28,18 @@ var customMetricsDimensionsMap map[string]map[string]map[string]*CustomMetricsCa
func
init
()
{
func
init
()
{
metricsMap
=
map
[
string
][]
string
{
metricsMap
=
map
[
string
][]
string
{
"AWS/AutoScaling"
:
{
"GroupMinSize"
,
"GroupMaxSize"
,
"GroupDesiredCapacity"
,
"GroupInServiceInstances"
,
"GroupPendingInstances"
,
"GroupStandbyInstances"
,
"GroupTerminatingInstances"
,
"GroupTotalInstances"
},
"AWS/ApplicationELB"
:
{
"ActiveConnectionCount"
,
"ClientTLSNegotiationErrorCount"
,
"HealthyHostCount"
,
"HTTPCode_ELB_4XX_Count"
,
"HTTPCode_ELB_5XX_Count"
,
"HTTPCode_Target_2XX_Count"
,
"HTTPCode_Target_3XX_Count"
,
"HTTPCode_Target_4XX_Count"
,
"HTTPCode_Target_5XX_Count"
,
"NewConnectionCount"
,
"ProcessedBytes"
,
"RejectedConnectionCount"
,
"RequestCount"
,
"TargetConnectionErrorCount"
,
"TargetResponseTime"
,
"TargetTLSNegotiationErrorCount"
,
"UnhealthyHostCount"
},
"AWS/Billing"
:
{
"EstimatedCharges"
},
"AWS/AutoScaling"
:
{
"GroupMinSize"
,
"GroupMaxSize"
,
"GroupDesiredCapacity"
,
"GroupInServiceInstances"
,
"GroupPendingInstances"
,
"GroupStandbyInstances"
,
"GroupTerminatingInstances"
,
"GroupTotalInstances"
},
"AWS/CloudFront"
:
{
"Requests"
,
"BytesDownloaded"
,
"BytesUploaded"
,
"TotalErrorRate"
,
"4xxErrorRate"
,
"5xxErrorRate"
},
"AWS/Billing"
:
{
"EstimatedCharges"
},
"AWS/CloudSearch"
:
{
"SuccessfulRequests"
,
"SearchableDocuments"
,
"IndexUtilization"
,
"Partitions"
},
"AWS/CloudFront"
:
{
"Requests"
,
"BytesDownloaded"
,
"BytesUploaded"
,
"TotalErrorRate"
,
"4xxErrorRate"
,
"5xxErrorRate"
},
"AWS/DynamoDB"
:
{
"ConditionalCheckFailedRequests"
,
"ConsumedReadCapacityUnits"
,
"ConsumedWriteCapacityUnits"
,
"OnlineIndexConsumedWriteCapacity"
,
"OnlineIndexPercentageProgress"
,
"OnlineIndexThrottleEvents"
,
"ProvisionedReadCapacityUnits"
,
"ProvisionedWriteCapacityUnits"
,
"ReadThrottleEvents"
,
"ReturnedBytes"
,
"ReturnedItemCount"
,
"ReturnedRecordsCount"
,
"SuccessfulRequestLatency"
,
"SystemErrors"
,
"ThrottledRequests"
,
"UserErrors"
,
"WriteThrottleEvents"
},
"AWS/CloudSearch"
:
{
"SuccessfulRequests"
,
"SearchableDocuments"
,
"IndexUtilization"
,
"Partitions"
},
"AWS/EBS"
:
{
"VolumeReadBytes"
,
"VolumeWriteBytes"
,
"VolumeReadOps"
,
"VolumeWriteOps"
,
"VolumeTotalReadTime"
,
"VolumeTotalWriteTime"
,
"VolumeIdleTime"
,
"VolumeQueueLength"
,
"VolumeThroughputPercentage"
,
"VolumeConsumedReadWriteOps"
,
"BurstBalance"
},
"AWS/DynamoDB"
:
{
"ConditionalCheckFailedRequests"
,
"ConsumedReadCapacityUnits"
,
"ConsumedWriteCapacityUnits"
,
"OnlineIndexConsumedWriteCapacity"
,
"OnlineIndexPercentageProgress"
,
"OnlineIndexThrottleEvents"
,
"ProvisionedReadCapacityUnits"
,
"ProvisionedWriteCapacityUnits"
,
"ReadThrottleEvents"
,
"ReturnedBytes"
,
"ReturnedItemCount"
,
"ReturnedRecordsCount"
,
"SuccessfulRequestLatency"
,
"SystemErrors"
,
"ThrottledRequests"
,
"UserErrors"
,
"WriteThrottleEvents"
},
"AWS/EC2"
:
{
"CPUCreditUsage"
,
"CPUCreditBalance"
,
"CPUUtilization"
,
"DiskReadOps"
,
"DiskWriteOps"
,
"DiskReadBytes"
,
"DiskWriteBytes"
,
"NetworkIn"
,
"NetworkOut"
,
"NetworkPacketsIn"
,
"NetworkPacketsOut"
,
"StatusCheckFailed"
,
"StatusCheckFailed_Instance"
,
"StatusCheckFailed_System"
},
"AWS/EBS"
:
{
"VolumeReadBytes"
,
"VolumeWriteBytes"
,
"VolumeReadOps"
,
"VolumeWriteOps"
,
"VolumeTotalReadTime"
,
"VolumeTotalWriteTime"
,
"VolumeIdleTime"
,
"VolumeQueueLength"
,
"VolumeThroughputPercentage"
,
"VolumeConsumedReadWriteOps"
,
"BurstBalance"
},
"AWS/EC2Spot"
:
{
"AvailableInstancePoolsCount"
,
"BidsSubmittedForCapacity"
,
"EligibleInstancePoolCount"
,
"FulfilledCapacity"
,
"MaxPercentCapacityAllocation"
,
"PendingCapacity"
,
"PercentCapacityAllocation"
,
"TargetCapacity"
,
"TerminatingCapacity"
},
"AWS/EC2"
:
{
"CPUCreditUsage"
,
"CPUCreditBalance"
,
"CPUUtilization"
,
"DiskReadOps"
,
"DiskWriteOps"
,
"DiskReadBytes"
,
"DiskWriteBytes"
,
"NetworkIn"
,
"NetworkOut"
,
"NetworkPacketsIn"
,
"NetworkPacketsOut"
,
"StatusCheckFailed"
,
"StatusCheckFailed_Instance"
,
"StatusCheckFailed_System"
},
"AWS/ECS"
:
{
"CPUReservation"
,
"MemoryReservation"
,
"CPUUtilization"
,
"MemoryUtilization"
},
"AWS/EC2Spot"
:
{
"AvailableInstancePoolsCount"
,
"BidsSubmittedForCapacity"
,
"EligibleInstancePoolCount"
,
"FulfilledCapacity"
,
"MaxPercentCapacityAllocation"
,
"PendingCapacity"
,
"PercentCapacityAllocation"
,
"TargetCapacity"
,
"TerminatingCapacity"
},
"AWS/EFS"
:
{
"BurstCreditBalance"
,
"ClientConnections"
,
"DataReadIOBytes"
,
"DataWriteIOBytes"
,
"MetadataIOBytes"
,
"TotalIOBytes"
,
"PermittedThroughput"
,
"PercentIOLimit"
},
"AWS/ECS"
:
{
"CPUReservation"
,
"MemoryReservation"
,
"CPUUtilization"
,
"MemoryUtilization"
},
"AWS/ELB"
:
{
"HealthyHostCount"
,
"UnHealthyHostCount"
,
"RequestCount"
,
"Latency"
,
"HTTPCode_ELB_4XX"
,
"HTTPCode_ELB_5XX"
,
"HTTPCode_Backend_2XX"
,
"HTTPCode_Backend_3XX"
,
"HTTPCode_Backend_4XX"
,
"HTTPCode_Backend_5XX"
,
"BackendConnectionErrors"
,
"SurgeQueueLength"
,
"SpilloverCount"
},
"AWS/EFS"
:
{
"BurstCreditBalance"
,
"ClientConnections"
,
"DataReadIOBytes"
,
"DataWriteIOBytes"
,
"MetadataIOBytes"
,
"TotalIOBytes"
,
"PermittedThroughput"
,
"PercentIOLimit"
},
"AWS/ELB"
:
{
"HealthyHostCount"
,
"UnHealthyHostCount"
,
"RequestCount"
,
"Latency"
,
"HTTPCode_ELB_4XX"
,
"HTTPCode_ELB_5XX"
,
"HTTPCode_Backend_2XX"
,
"HTTPCode_Backend_3XX"
,
"HTTPCode_Backend_4XX"
,
"HTTPCode_Backend_5XX"
,
"BackendConnectionErrors"
,
"SurgeQueueLength"
,
"SpilloverCount"
},
"AWS/ElastiCache"
:
{
"AWS/ElastiCache"
:
{
"CPUUtilization"
,
"FreeableMemory"
,
"NetworkBytesIn"
,
"NetworkBytesOut"
,
"SwapUsage"
,
"CPUUtilization"
,
"FreeableMemory"
,
"NetworkBytesIn"
,
"NetworkBytesOut"
,
"SwapUsage"
,
"BytesUsedForCacheItems"
,
"BytesReadIntoMemcached"
,
"BytesWrittenOutFromMemcached"
,
"CasBadval"
,
"CasHits"
,
"CasMisses"
,
"CmdFlush"
,
"CmdGet"
,
"CmdSet"
,
"CurrConnections"
,
"CurrItems"
,
"DecrHits"
,
"DecrMisses"
,
"DeleteHits"
,
"DeleteMisses"
,
"Evictions"
,
"GetHits"
,
"GetMisses"
,
"IncrHits"
,
"IncrMisses"
,
"Reclaimed"
,
"BytesUsedForCacheItems"
,
"BytesReadIntoMemcached"
,
"BytesWrittenOutFromMemcached"
,
"CasBadval"
,
"CasHits"
,
"CasMisses"
,
"CmdFlush"
,
"CmdGet"
,
"CmdSet"
,
"CurrConnections"
,
"CurrItems"
,
"DecrHits"
,
"DecrMisses"
,
"DeleteHits"
,
"DeleteMisses"
,
"Evictions"
,
"GetHits"
,
"GetMisses"
,
"IncrHits"
,
"IncrMisses"
,
"Reclaimed"
,
...
@@ -86,6 +87,7 @@ func init() {
...
@@ -86,6 +87,7 @@ func init() {
"AWS/WorkSpaces"
:
{
"Available"
,
"Unhealthy"
,
"ConnectionAttempt"
,
"ConnectionSuccess"
,
"ConnectionFailure"
,
"SessionLaunchTime"
,
"InSessionLatency"
,
"SessionDisconnect"
},
"AWS/WorkSpaces"
:
{
"Available"
,
"Unhealthy"
,
"ConnectionAttempt"
,
"ConnectionSuccess"
,
"ConnectionFailure"
,
"SessionLaunchTime"
,
"InSessionLatency"
,
"SessionDisconnect"
},
}
}
dimensionsMap
=
map
[
string
][]
string
{
dimensionsMap
=
map
[
string
][]
string
{
"AWS/ApplicationELB"
:
{
"LoadBalancer"
,
"TargetGroup"
,
"AvailabilityZone"
},
"AWS/AutoScaling"
:
{
"AutoScalingGroupName"
},
"AWS/AutoScaling"
:
{
"AutoScalingGroupName"
},
"AWS/Billing"
:
{
"ServiceName"
,
"LinkedAccount"
,
"Currency"
},
"AWS/Billing"
:
{
"ServiceName"
,
"LinkedAccount"
,
"Currency"
},
"AWS/CloudFront"
:
{
"DistributionId"
,
"Region"
},
"AWS/CloudFront"
:
{
"DistributionId"
,
"Region"
},
...
...
public/app/features/dashboard/dynamic_dashboard_srv.ts
View file @
76e4b7ce
...
@@ -54,6 +54,8 @@ export class DynamicDashboardSrv {
...
@@ -54,6 +54,8 @@ export class DynamicDashboardSrv {
// clean up old left overs
// clean up old left overs
row
.
panels
=
_
.
without
(
row
.
panels
,
panel
);
row
.
panels
=
_
.
without
(
row
.
panels
,
panel
);
j
=
j
-
1
;
j
=
j
-
1
;
}
else
if
(
row
.
repeat
||
row
.
repeatRowId
)
{
continue
;
}
else
if
(
!
_
.
isEmpty
(
panel
.
scopedVars
)
&&
panel
.
repeatIteration
!==
this
.
iteration
)
{
}
else
if
(
!
_
.
isEmpty
(
panel
.
scopedVars
)
&&
panel
.
repeatIteration
!==
this
.
iteration
)
{
panel
.
scopedVars
=
{};
panel
.
scopedVars
=
{};
}
}
...
@@ -120,7 +122,6 @@ export class DynamicDashboardSrv {
...
@@ -120,7 +122,6 @@ export class DynamicDashboardSrv {
panel
=
copy
.
panels
[
i
];
panel
=
copy
.
panels
[
i
];
panel
.
scopedVars
=
{};
panel
.
scopedVars
=
{};
panel
.
scopedVars
[
variable
.
name
]
=
option
;
panel
.
scopedVars
[
variable
.
name
]
=
option
;
panel
.
repeatIteration
=
this
.
iteration
;
}
}
});
});
}
}
...
...
public/app/features/dashboard/specs/dynamic_dashboard_srv_specs.ts
View file @
76e4b7ce
...
@@ -165,6 +165,7 @@ dynamicDashScenario('given dashboard with row repeat', function(ctx) {
...
@@ -165,6 +165,7 @@ dynamicDashScenario('given dashboard with row repeat', function(ctx) {
it
(
'should generate a repeartRowId based on repeat row index'
,
function
()
{
it
(
'should generate a repeartRowId based on repeat row index'
,
function
()
{
expect
(
ctx
.
rows
[
1
].
repeatRowId
).
to
.
be
(
1
);
expect
(
ctx
.
rows
[
1
].
repeatRowId
).
to
.
be
(
1
);
expect
(
ctx
.
rows
[
1
].
repeatIteration
).
to
.
be
(
ctx
.
dynamicDashboardSrv
.
iteration
);
});
});
it
(
'should set scopedVars on row panels'
,
function
()
{
it
(
'should set scopedVars on row panels'
,
function
()
{
...
...
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