Hello,
First of all, thank you for the work on this project.
I have a question regarding the current metric format published. Right now, the data is embedded within tags, which makes it difficult to use directly in Datadog — we need to apply a metric transformation before the values become graphable.
Would it be possible to add support for publishing these metrics in a numeric structure instead? This would allow us to consume the metrics directly in Datadog without the extra transformation step. I understand that Grafana does not have this limitation, but having the option to expose numeric values would be very helpful for teams using Datadog.
I’m attaching below an example of the current structure and the expected numeric structure for clarity.
Current
tf_workspaces_info{assessments_enabled="false",created_at="2024-02-07 14:48:55.57 +0000 UTC",current_run="na",current_run_created_at="na",current_run_status="na",description="",environment="default",id="ws-workspace01",name="testxxxxxx",organization="myorg-xxxxxxxxxx",policy_check_failures="0",project="Default Project",resource_count="0",rum_count="0",run_failures="0",runs_count="0",terraform_version="1.7.2"} 1
Expected
tf_workspaces_resource_count{organization="myorg-xxxxxxxxxx",workspace_id="ws-workspace01",workspace_name="test"} 10
tf_workspaces_resource_count{organization="myorg-xxxxxxxxxx",workspace_id="ws-workspace02",workspace_name="test02"} 5
tf_workspaces_resource_count{organization="myorg-xxxxxxxxxx",workspace_id="ws-workspace03",workspace_name="test03"} 8
Thank you for considering this feature request!
Hello,
First of all, thank you for the work on this project.
I have a question regarding the current metric format published. Right now, the data is embedded within tags, which makes it difficult to use directly in Datadog — we need to apply a metric transformation before the values become graphable.
Would it be possible to add support for publishing these metrics in a numeric structure instead? This would allow us to consume the metrics directly in Datadog without the extra transformation step. I understand that Grafana does not have this limitation, but having the option to expose numeric values would be very helpful for teams using Datadog.
I’m attaching below an example of the current structure and the expected numeric structure for clarity.
Current
tf_workspaces_info{assessments_enabled="false",created_at="2024-02-07 14:48:55.57 +0000 UTC",current_run="na",current_run_created_at="na",current_run_status="na",description="",environment="default",id="ws-workspace01",name="testxxxxxx",organization="myorg-xxxxxxxxxx",policy_check_failures="0",project="Default Project",resource_count="0",rum_count="0",run_failures="0",runs_count="0",terraform_version="1.7.2"} 1Expected
Thank you for considering this feature request!