Count metric label and format


#1

Hi, I have a metric declared like this cf.Metric(), since the count metric is not a field in my source, I am wondering if there is a way to change the label and format, using the metadata, now i see the label Transactions for the count metric.


#2

Hey @mdemian, I don’t understand why you need to format the count metric but yes you can do it just using this in your metadata:

{
"your_source": {
    "count": {
      "label": "Your label",
      displayFormat: '$ 00,0'
    },
}
}

#4

Got it, i tried and it works good, so what about just using the label in the metric, like this: cf.Metric().label('my-label') is that correct?


#5

No, that setting is only for the available fields and the count metric is not there, so it won’t work like that.