tf-profile
tf-profile copied to clipboard
Question : Use cases
HI, As I understand, using this tool locally has some benefits Probably better use case, would be to collect the metrics over time and understand performance of terraform code base over time?
Are use cases for this tool described somewhere? Sorry if missed it somewhere here on github
Something like :
- add as a pipeline step and export the metrics to tool XYZ for building a dashboard; Graphana/Prometheus, New Relics and etc
- comparison between different runs
- introducing some best practices based on number of resources & time it takes for an apply
Hi, First of all, thanks for showing interest in tf-profile! You're correct that it's currently positioned as a tool to do "adhoc" analysis of logs, locally or by enhancing the output of some automated process (CICD).
I see the value of comparing its output over multiple runs. And you're right that no such use case is currently described. I completely support exporting tf-profile's output to something like Prometheus or similar, and will put that on the roadmap. Imo that covers a lot of useful cases already.
As for your other suggestions (comparisons between runs / introducing some best practices), could you elaborate a bit on how you see this? Ideally, we could keep the API small and focused (i.e. I don't think tf-profile should be responsible for storing logs or making suggestions about your TF configuration).
Quinten