In azure rest API you have the option to extract creation and change time of an azure resource
az rest \
--method GET \
--url "https://management.azure.com/subscriptions/{subscription-id}/resources" \
--url-parameters api-version=2020-06-01 \$expand=createdTime \$select=name,createdTime
Is there a way to configure azure-resourcemanager-exporter to create a new metric that will have as value the create time of the resource?
Say you can configure the new metric to have the same labels as azurerm_resource_info metric and as value the creation date of the resource. In order to not return the date for all resources, you could also specify in the config the resources that you are interested (for example the name of the azure providers:disks, virtualmachines, managedclusters etc).
The goal is to be able to sort resources according to creation date in prometheus. When we have the creation date as label of the metric, you can't really filter with an expression like, give me all VMs that are older that one month old.
In azure rest API you have the option to extract creation and change time of an azure resource
Is there a way to configure azure-resourcemanager-exporter to create a new metric that will have as value the create time of the resource?
Say you can configure the new metric to have the same labels as azurerm_resource_info metric and as value the creation date of the resource. In order to not return the date for all resources, you could also specify in the config the resources that you are interested (for example the name of the azure providers:disks, virtualmachines, managedclusters etc).
The goal is to be able to sort resources according to creation date in prometheus. When we have the creation date as label of the metric, you can't really filter with an expression like, give me all VMs that are older that one month old.