File tree Expand file tree Collapse file tree 3 files changed +2354
-2122
lines changed Expand file tree Collapse file tree 3 files changed +2354
-2122
lines changed Original file line number Diff line number Diff line change 14
14
"aws-cognito/aws-cognito.json" ,
15
15
"aws-direct-connect/aws-direct-connect.json" ,
16
16
"aws-dynamodb/aws-dynamodb.json" ,
17
- "aws-ebs/aws-ebs.json"
17
+ "aws-ebs/aws-ebs.json" ,
18
+ "aws-ec2/aws-ec2.json"
18
19
]
19
20
20
21
standard_footer = "<a target=\" _blank\" href=\" http://www.monitoringartist.com\" title=\" Dashboard maintained by Monitoring Artist - DevOps / Docker / Kubernetes / AWS ECS / Google GCP / Zabbix / Zenoss / Terraform / Monitoring\" ><img src=\" https://monitoringartist.github.io/monitoring-artist-logo-grafana.png\" height=\" 30px\" /></a> | \n <a target=\" _blank\" href=\" https://docs.aws.amazon.com/transfer/latest/userguide/monitoring.html\" >AWS CloudWatch Transfer Family documentation</a> | \n <a target=\" _blank\" href=\" https://grafana.com/dashboards/20008\" >Installed from Grafana.com dashboards</a>"
@@ -34,8 +35,10 @@ def validate_panel(f, panel):
34
35
for target in panel ["targets" ]:
35
36
if "datasource" in target and "uid" in target ["datasource" ] and target ["datasource" ]["uid" ] != "$datasource" :
36
37
print ('Dashboard ' + f + ' - panel: ' + panel ['title' ] + ' doesn\' t use $datasource variable' )
37
- if "fieldConfig" in panel and "custom" in panel ["fieldConfig" ] and "lineWidth" in panel ["fieldConfig" ]["custom" ] and panel ["fieldConfig" ]["custom" ] ["lineWidth" ] != 1 :
38
+ if "fieldConfig" in panel and "defaults" in panel [ "fieldConfig" ] and " custom" in panel ["fieldConfig" ][ "defaults" ] and "lineWidth" in panel ["fieldConfig" ]["defaults" ][ " custom" ] and panel ["fieldConfig" ][ "defaults " ]["custom" ] ["lineWidth" ] != 1 :
38
39
print ('Dashboard ' + f + ' - panel: ' + panel ['title' ] + ' doesn\' t use lineWidth = 1' )
40
+ if "options" in panel and "legend" in panel ["options" ] and "calcs" in panel ["options" ]["legend" ] and "lastNotNull" in panel ["options" ]["legend" ]["calcs" ]:
41
+ print ('Dashboard ' + f + ' - panel: ' + panel ['title' ] + ' has lastNotNull in the legend' )
39
42
40
43
def validate_config (f , dashboard ):
41
44
if 'panels' in dashboard :
You can’t perform that action at this time.
0 commit comments