Git Product home page Git Product logo

Comments (12)

jangaraj avatar jangaraj commented on July 30, 2024 1

ec2_instance_attribute uses probably EC2 DescribeInstances, so you need additional EC2 permissions (not only cloudwacth). I don't know which one - please dig into cloudwatch source code, add full EC2 read only, pay for commercial support, ....

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 30, 2024

You have to specify values for all dimensions - select which instanceId stat you want to see.

from grafana-aws-cloudwatch-dashboards.

OleksandrSlobodian avatar OleksandrSlobodian commented on July 30, 2024

Hi againe when I told there is an issue with getting InstanceId I was meant that

"query": "ec2_instance_attribute($region, InstanceId, {})",

return nothing to InstanceId array
aws ec2

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 30, 2024

So you don't have any instances in region us-east-1. If you have, then your cloudwatch datasource is not configured properly -> please follow official doc http://docs.grafana.org/datasources/cloudwatch/

from grafana-aws-cloudwatch-dashboards.

dominikhahn avatar dominikhahn commented on July 30, 2024

Works for me:
aws-ec2-dashboard

Grafana v4.0.0-pre1 (commit: 578507a)

from grafana-aws-cloudwatch-dashboards.

OleksandrSlobodian avatar OleksandrSlobodian commented on July 30, 2024

Guys, have no clue what is the root cause of my issue, but I found workeraund - getting InstanceId array with other query:

dimension_values($region, AWS/EC2, CPUUtilization, InstanceId)

aws ec2 work

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 30, 2024

Do you have a problem with ec2_instance_attribute($region, InstanceId, {}) ?

from grafana-aws-cloudwatch-dashboards.

OleksandrSlobodian avatar OleksandrSlobodian commented on July 30, 2024

yes - correct

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 30, 2024

So I guess, you don't have EC2 permissions (for ec2_instance_attribute) and you have only cloudwatch permissions (dimension_values).

from grafana-aws-cloudwatch-dashboards.

OleksandrSlobodian avatar OleksandrSlobodian commented on July 30, 2024

So do I need more permissions than

 "cloudwatch:GetMetricData",
 "cloudwatch:GetMetricStatistics",
 "cloudwatch:ListMetrics"

from grafana-aws-cloudwatch-dashboards.

OleksandrSlobodian avatar OleksandrSlobodian commented on July 30, 2024

hm - thanks for advise - will dig this issue... and thank you so much for great dashboards! ... sorry for making issue in this project :|

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 30, 2024

It'll be awesome if you create pull request with minimal required grafana IAM policy - your start point can be https://gist.github.com/jangaraj/109ebf581d1fb74d9082cca617e9eda5. Thanks.

from grafana-aws-cloudwatch-dashboards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.