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

Iterate on lists #179

Open
anniehedgpeth opened this issue Aug 3, 2022 · 4 comments
Open

Iterate on lists #179

anniehedgpeth opened this issue Aug 3, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request terraform

Comments

@anniehedgpeth
Copy link

anniehedgpeth commented Aug 3, 2022

What problem would you like hcdiag to address?
In conjunction with the feature request for Conditional Support to retrieve nested metrics, I would like to be able to run metrics for entire lists found in the output.

Who is the audience for this request?
TFE product and engineering team

What would the ideal solution look like?
In the section of my RFC titled "TFE Product Usage via Atlas Settings", there are several pieces of data that I would need on each organization. I would like to be able to use the httper to grab a list of all of the organizations in a TFE instance and iterate on those organizations to run the httper to get info on agents, workflows, and VCS providers.

For example, I would like to know the total number of agents at the time of collection. In order to do that, I would need to do the following:

What alternatives have you considered?
Hammering it out with bash or creating my own iteration function in the TFE product.

What is the impact?
As referenced in our PRD, we are collecting aggregate data on our customers across the board, so being able to dig into this data for each customer is important, and collecting data on those totals for our research is important for our testing strategies.

@aliciaclark1066
Copy link
Contributor

Thanks Annie! This is great info for us. We'll take a look and get back to you soon on when we can prioritize this request.

@anniehedgpeth
Copy link
Author

After looking at the API response, I see that the agents' "status-counts" would be the end result of what I would want, given that example up above, so aggregating a total for all agents would simply be adding the "status-counts" for all organizations.

I understand that this is a bigger conversation with how the data collected is parsed and stored, but I just wanted to drop in an example of how we'd want to use it.

@anniehedgpeth
Copy link
Author

I edited the original post to remove aggregation.

@anniehedgpeth anniehedgpeth changed the title Iterate on lists and collect data as aggregate data collected on lists Iterate on lists Aug 4, 2022
@aliciaclark1066
Copy link
Contributor

Hi @anniehedgpeth! Our upcoming dynamic runners epic should be able to address this feature. We'll make sure to add it to our list of use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request terraform
Projects
None yet
Development

No branches or pull requests

2 participants