Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(4/4) [Spike] [1h] Test Grafana datasource by a query from Grafana #4550

Closed
2 tasks
Tracked by #4546
consideRatio opened this issue Jul 31, 2024 · 1 comment
Closed
2 tasks
Tracked by #4546
Assignees

Comments

@consideRatio
Copy link
Contributor

consideRatio commented Jul 31, 2024

This is task 4/4 in #4546, which is part of the big epic #4453.

This task is dependent on task 3/4 #4549 has been completed, and completed with a technically positive outcome where we think that the datasource could work as it is.


The query below has run successfully from the Amazon Athena query editor UI, with s3://openscapes-cost-usage-report/athena/ as the "Query result location".

Test using the same query from Grafana to verify that you successfully can work against the added Athena datasource. It may be that this needs to be tweaked, but I'm unable to determine if/how at this point in time.

SELECT
    line_item_usage_type,
    sum(split_line_item_split_cost) AS "cost"
FROM "athenacurcfn_2i2c_cost_export"."2i2c_cost_export"
WHERE split_line_item_split_cost >0.0
GROUP BY
    line_item_usage_type

To run a query, I think the steps are to login to https://grafana.openscapes.2i2c.cloud/ as admin, create a testing dashboard, and within it create a testing panel - perhaps of a table type, and declare this as a query for it.

Definition of done

  • A query was successfully executed against Athena

or

  • You've tried to make it work up at most 1h without success, and then wrote a comment in this issue about it failing and optionally if you have ideas on why.
@consideRatio consideRatio changed the title Test Grafana datasource by a query from Grafana (4/4) Test Grafana datasource by a query from Grafana Jul 31, 2024
@consideRatio consideRatio changed the title (4/4) Test Grafana datasource by a query from Grafana (4/4) [1h] Test Grafana datasource by a query from Grafana Jul 31, 2024
@consideRatio consideRatio changed the title (4/4) [1h] Test Grafana datasource by a query from Grafana (4/4) [Spike] [1h] Test Grafana datasource by a query from Grafana Aug 1, 2024
@GeorgianaElena GeorgianaElena self-assigned this Aug 14, 2024
@GeorgianaElena
Copy link
Member

With #4620, the query in the top comment ran without throwing any error.

The panel is at https://grafana.openscapes.2i2c.cloud/d/cdusj7n6063nkc/athena-test-query?orgId=1&from=1723612631281&to=1723634231281&viewPanel=1 and below.

Screenshot 2024-08-14 at 14 20 41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants