The metrics InstrumentedImageGenerationClient records, declared as Metrics and recorded through MetricsCollector.increment and MetricsCollector.observe, so every backend that exports generic metrics exports them, and core names nothing about image generation (#2801). They were two methods of MetricsCollector, observeImageGeneration and recordImageGenerationCost.
The exported series are the ones those methods produced. A Prometheus backend exposes them as llm4s_image_generations_total, llm4s_images_generated_total, llm4s_image_generation_duration_seconds, llm4s_image_generation_cost_usd_total and llm4s_image_generation_errors_total; a Micrometer one under the names below. ImageMetricsSeriesSpec pins every name, type, label and bucket.
A failed operation is also added to MetricsCollector.Errors (llm4s_errors_total), the count of failed operations a backend keeps for every kind of request.
Image generation operations, successful or not. Labels: provider, model, operation (generate or edit), status (success, or error_ and the error type: see statusLabel).
Image generation operations, successful or not. Labels: provider, model, operation (generate or edit), status (success, or error_ and the error type: see statusLabel).