How to see historical metric values on an unbuilt dataset?

Xavier_G
Xavier_G Registered Posts: 1
edited August 11 in Using Dataiku

Hello,

I have sevaral datasets in several dataiku projects (with similar architecture). I want to monitor the volume of these datasets, so I create a project with a python recipe to do that.

After checking the box "Auto compute after build" on each dataset I want to monitor (for the metric "records:COUNT_RECORDS"), I write a piece of code to retrieve the historical values of this metric. My code is based on the method DSSDataset.get_metric_history("records:COUNT_RECORDS").

So, I'm able to retieve the historical values of my metric BUT I'm able to do that until I clean my dataset (I have to do that because of storage constraints). As soon as I clean my dataset, I have an error message :

com.dataiku.dip.server.controllers.NotFoundException: Metric: 'records:COUNT_RECORDS' does not exist on dataset XXX

The weird part is that if I build again my dataset, I am able to see the whole historical value of my metric. The second weird thing is that even if the dataset is cleaned, I can see the historical values of the metric in the "Metrics" tab of the dataset.

Any clue on how I can see the historical values of a metric on an "unbuilt" dataset?

Thanks for your help.

Dataiku version used: 14.1.2

Dataiku version used: 14.1.2

Tagged:
Setup Info
    Tags
      Help me…