当前位置: 首页 > 软件库 > 云计算 > >

grafana-aws-cloudwatch-dashboards

授权协议 GPL-3.0 License
开发语言 C/C++
所属分类 云计算
软件类型 开源软件
地区 不详
投 递 者 邹华池
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Managed by Monitoring Artist: DevOps / Docker / Kubernetes / AWS ECS / Zabbix / Zenoss / Terraform / Monitoring

Grafana dashboards for AWS CloudWatch

Set of AWS Grafana dashboards published ongrafana.com -10M+ downloads.

Doc:

Feel free to create pull request for additional AWS resources/printscreens/...

Please set your dashboard variables (Region, ...) after dashboard import.Empty dashboard variables are reason of initial "Unable to call AWS API" or "Metric request error" error.

Import all Monitoring Artist AWS dashboards in one go (example script,bash/curl/jq required):

#!/bin/bash
jq --version >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed.  Aborting."; exit 1; }
### Please edit grafana_* variables to match your Grafana setup:
grafana_host="http://localhost:3000"
grafana_cred="admin:admin"
# Keep grafana_folder empty for adding the dashboards in "General" folder
grafana_folder="AWS CloudWatch"
ds=(1516 677 139 674 590 659 758 623 617 551 653 969 650 644 607 593 707 575 1519 581 584 2969 8050 11099 11154 11155 12979 13018 13040 13104 13892 14189 14391 14392 14954 14955 15016);
folderId=$(curl -s -k -u "$grafana_cred" $grafana_host/api/folders | jq -r --arg grafana_folder  "$grafana_folder" '.[] | select(.title==$grafana_folder).id')
if [ -z "$folderId" ] ; then echo "Didn't get folderId" ; else echo "Got folderId $folderId" ; fi
for d in "${ds[@]}"; do
  echo -n "Processing $d: "
  j=$(curl -s -k -u "$grafana_cred" $grafana_host/api/gnet/dashboards/$d | jq .json)
  payload="{\"dashboard\":$j,\"overwrite\":true"
  if [ ! -z "$folderId" ] ; then payload="${payload}, \"folderId\": $folderId }";  else payload="${payload} }" ; fi
  curl -s -k -u "$grafana_cred" -XPOST -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -d "$payload" \
    $grafana_host/api/dashboards/import; echo ""
done

Use AWS Policy Generator,which fits your needs. Example of minimal IAM role for Grafana (CloudWatch + EC2 metrics):

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AllowReadingMetricsFromCloudWatch",
            "Effect": "Allow",
            "Action": [
                "cloudwatch:DescribeAlarmsForMetric",
                "cloudwatch:DescribeAlarmHistory",
                "cloudwatch:DescribeAlarms",
                "cloudwatch:ListMetrics",
                "cloudwatch:GetMetricStatistics",
                "cloudwatch:GetMetricData"
            ],
            "Resource": "*"
        },
        {
            "Sid": "AllowReadingTagsInstancesRegionsFromEC2",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeTags",
                "ec2:DescribeInstances",
                "ec2:DescribeRegions"
            ],
            "Resource": "*"
        },
        {
            "Sid": "AllowReadingResourcesForTags",
            "Effect" : "Allow",
            "Action" : "tag:GetResources",
            "Resource" : "*"
        }
    ]
}

You can also install this project as a Jsonnet library with jsonnet-bundler:

$ jb install github.com/monitoringartist/grafana-aws-cloudwatch-dashboards
$ cat > aws-cloudwatch-dashboards.jsonnet <<EOF
local awsCloudWatch = import 'github.com/monitoringartist/grafana-aws-cloudwatch-dashboards/dashboards.libsonnet';

awsCloudWatch.grafanaDashboards
EOF
$ jsonnet -J vendor aws-cloudwatch-dashboards.jsonnet

Single click provisioning - login as admin/admin and create CloudWatch datasource from your Access & secret key to see all dashboards with your data.

AWS API Gateway

AWS Auto Scaling

AWS Billing

AWS Certificate Manager

AWS CloudFront

AWS CloudWatch Browser

AWS CloudWatch Synthetics

AWS CloudWatch Usage Metrics

AWS CodeBuild

AWS Cognito

AWS EBS

AWS EC2

AWS ECS

AWS EFS

AWS EKS

AWS ElastiCache Redis

AWS ELB Classic Load Balancer

AWS ELB Application Load Balancer

AWS EMR Hadoop 2

AWS Events

AWS Inspector

AWS Kinesis

AWS Lambda

AWS Logs

AWS Network Firewall

AWS RDS

AWS Redshift

AWS Route 53

AWS S3

AWS SES

AWS SNS

AWS SQS

AWS Step Functions

AWS Storage Gateway

AWS Transit Gateway

AWS VPN

AWS X-Ray

Author

Devops Monitoring Expert,who loves monitoring systems and cutting/bleeding edge technologies: Docker,Kubernetes, ECS, AWS, Google GCP, Terraform, Lambda, Zabbix, Grafana, Elasticsearch,Kibana, Prometheus, Sysdig,...

Summary:

Professional devops / monitoring / consulting services:

Monitoring Artist

  • 系列文章 Grafana 系列文章 AWS Cloudwatch 数据源 对于 AWS Cloudwatch, 主要在于 3 种不同的认证方式: AWS SDK Default IAM Role AK&SK Credentials file 现在推荐的是使用 IAM Role 的认证方式,避免了密钥泄露的风险。 但是特别要注意的是,要读取 CloudWatch 指标和 EC2 标签 (tags)、

  •  官网: 官方网址:https://grafana.com/ 官方文档:http://docs.grafana.org/ 安装 grafana 基于 RPM 的系统(CentOS,Fedora,OpenSuse,RedHat) 最新稳定版 CentOS / Fedora / OpenSuse / Redhat Linux grafana-4.4.3 (x86-64 rpm) : https://s

  • Overview Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real time. You can use CloudWatch to collect and track metrics, which are variables

 相关资料
  • 我在AWS EMR Spark上运行一个应用程序。这里,是spark提交作业- 所以,AWS使用YARN进行资源管理。当我观察云观察指标时,我对此有几个疑问:- 这里分配的容器意味着什么?我正在使用1 master 我将查询更改为:- 这里运行的内核数是3。不应该是3(执行器数)*4(内核数)=12吗?

  • 我创建了具有以下事件模式的CloudWatch规则: 其思想是,每当集群的状态发生变化时,它都会调用lambda函数。 现在的问题是,当它调用lambda函数时,会出现以下错误: 带代码: 那么,我应该使用哪个类来解析CloudWatch规则事件? 谢谢你。

  • 当编写由Cloudwatch计划事件触发的AWSJavaLambda函数时,哪个事件对象被传递给Lambda处理程序函数? 例如,对于由S3事件触发的Lambda函数,AWS调用该函数并传递S3Event对象。类似地,它会将SNSEvent对象传递给由SNS消息触发的函数。 或者 对于Cloudwatch计划事件驱动功能,什么将取代SNSEent/S3事件? 我一辈子都找不到任何用Java编写的A

  • 除了星期二,我想在和UTC期间的每一分钟都调用我的lambda。我在cloud dwatch规则中编写了以下cron表达式,但我收到错误 参数SchduleExpression无效。 我用crontab交叉检查了表达式。古鲁也是。 我甚至试着做以下事情,因为如果它在星期二运行,我还可以。 他们都给了我错误。谁能帮帮我吗?

  • 我正在尝试根据Cloudwatch触发器,特别是Cloudwatch scheduled(cron)触发器设置ECS Fargate作业以运行。我已经设置了ECS群集,当我在群集上手动创建ECS Fargate任务时,作业运行正常,没有错误。我还设置了Cloudwatch cron触发器,我可以在Cloudwatch指标中看到触发器是按照我配置的方式设置的。我遇到的问题是,这两件事没有相互交谈。我

  • 我已经使用配置了一个CloudWatch规则以在给定时间运行,但Lambda只是有时被调用。我已经确保Lambda执行角色具有适当的权限,有时CloudWatch规则会正确运行,调用我的Lambda函数。 例如,我以编程方式创建了一个规则,启用了它,并使用Python中的boto3客户端添加了一个目标,然后当角色执行时,它会执行,并在CloudWatch度量中显示“调用错误”。我采用了同样的规则,