Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Unanswered
Hi Team, I'M Having An Issue With Clearml Serving Custom Metrics Not Showing Up In Prometheus Or Grafana. Here'S What I Did:

Hi team,
I'm having an issue with ClearML Serving custom metrics not showing up in Prometheus or Grafana. Here's what I did:

  • Added custom metrics with the following command:clearml-serving --id d620517bd02d4aad8fed21309c54da3e metrics add --endpoint "text_classifier6" \
    --variable-scalar "request_count=0,100,1000,10000" \
    --variable-scalar "batch_size=1,10,50,100" \
    --variable-scalar "processing_time_seconds=0.01,0.1,0.5,1,5" \
    --variable-scalar "error_rate=0,0.01,0.05,0.1,0.5" \
    --variable-value "total_items_processed" \
    --variable-value "average_processing_time" \
    --variable-value "error_count" \
    --log-freq 1.0
  1. Implemented collect_custom_statistics_fn in the preprocessing script with the following:

collect_custom_statistics_fn({
"processing_time_seconds": processing_time,
"batch_size": len(data),
"average_processing_time": self.total_processing_time / self.total_items_processed,
"total_items_processed": self.total_items_processed,
"successful_predictions": self.total_items_processed,
"error_rate": (self.error_count / self.request_count) if self.request_count > 0 else 0
})

I can only see default metrics in Prometheus ( _count_created , _latency_bucketcounter , etc.), but none of the custom metrics like average_processing_time or total_items_processed .
Has anyone encountered this or knows how to fix it? Thanks!

  
  
Posted 2 days ago
Votes Newest

Answers