Git Product home page Git Product logo

Comments (12)

saindia-TBA avatar saindia-TBA commented on July 29, 2024 1

Hi,

We have imported latest change done by you but still not working.

image

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 29, 2024

Thank you for idea and example. Tag filtering will be useful definitely. Let me investigate and test it.

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 29, 2024

There will be visualization problem with ec2_instance_attribute($region, Tags, {}) if EC2 instance has more than 1 tag, example:
image

I would like to have 1st variable (query) which will return all tags keys and then 2nd variable (query), which will return tags values based on selected tag key (1st variable). Is it possible?

Probably we need to wait for grafana/grafana#8307

from grafana-aws-cloudwatch-dashboards.

prsf1233 avatar prsf1233 commented on July 29, 2024

Cool, for my use case only one Tag exists but yes I am sure others would need to filter on multple.

from grafana-aws-cloudwatch-dashboards.

paco3346 avatar paco3346 commented on July 29, 2024

@prsf1233 Check out my comment on that PR: grafana/grafana#8307 (comment)

This is how I handle the 'friendly name' issue internally.

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 29, 2024

https://github.com/monitoringartist/grafana-aws-cloudwatch-dashboards/blob/ec2-tag-filtering/aws-ec2/aws-ec2-tag-filtering.json - EC2 dashboard with tag name filtering for Grafana 4.5.beta1+. Feel free to improve this dashboard.

from grafana-aws-cloudwatch-dashboards.

pax-awitt avatar pax-awitt commented on July 29, 2024

hi @jangaraj, i wanted to submit a branch and pr for this issue, but i obviously get a 403. how can i do this?

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 29, 2024

Hi @pax-awitt, that's correct. You can push the code only to the repos, where you have write permission. Please fork this repo first and then create the pull request based on your forked and modified repo. Github help can be the useful doc for you.

from grafana-aws-cloudwatch-dashboards.

tomislater avatar tomislater commented on July 29, 2024

What about something like that: ec2_instance_attribute($region, Tags.Name, {}). I have checked it on 4.6.0 version.

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 29, 2024

@tomislater That's filtering is by one tag key (Name). It's OK for simple tagging. But it can be more complicated. For example, if you have blue/green deployment. Then the Name tag value is not unique and you need to filter by additional key (Colour) as well. The best general solution for the dashboard is to have ad-hoc filters similar to Elasticsearch ad-hoc filters:
elk-adhoc-filter
Feel free to open feature/pull request for CloudWatch plugin. Some function, which will return all available tag keys and tag values in the selected AWS "space" (ec2, ebs, emr, ...) must be implemented.

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 29, 2024

Grafana 5 EC2 dashboard with name tag filtering b925924:

image

If EC2 instances don't have a Name tags, then Tag Name: All and use classic Instance ID variable to select instance.

from grafana-aws-cloudwatch-dashboards.

jangaraj avatar jangaraj commented on July 29, 2024

It looks like a IAM problem in your case. Do you have:

"ec2:DescribeTags", "ec2:DescribeInstances"

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.