Skip to content

Metis InfluxDB Data Dictionary ​

Document Information

Version: v1.0 Updated: 2026-09-11

This document is intended for third-party users who query InfluxDB from Grafana to build statistical dashboards. It describes the available measurements, tags, fields, time semantics, and SQL query examples. Environment-specific values such as the endpoint, database name, token, and credentials are provided separately.

1. Connection Parameters ​

ItemValue
EndpointProvided by the deployment environment
Query Path/api/v3/query_sql
DatabaseProvided by the deployment environment
Query Precisionnanosecond

2. General Conventions ​

ItemDescription
Time columnInfluxDB SQL queries use time; timestamps are stored with nanosecond precision.
Query languageInfluxDB 3 SQL.
Snapshot measurementstime is the timestamp of the snapshot batch.
Event measurementstime is the event timestamp.
Cumulative measurementscredit_usage_daily and credit_usage_mtd_daily may contain invalidated records; business queries must filter with active = true.
Aggregate queriesIf an aggregate query does not select time, do not sort it by time.
Dimension typesAll tags are stored as strings. Boolean-like dimensions such as is_public and is_aggregated are also string tags.
Optional columnsEmpty fields are not written as empty strings or explicit NULL. A missing column means that the point does not contain that tag or field.

2.1 Instance Monitoring ​

Instance monitoring measurements provide instance-level, card-level, and hourly aggregate data. deploy_mode distinguishes single-instance, multi-instance, and cluster deployments. is_cluster is a string tag whose value is true or false. Raw monitoring values are stored as received and are not automatically unit-converted.

3. Measurement Overview ​

MeasurementDescriptionTime semanticsRecommended Grafana use
tenant_profile_snapshotTenant profile snapshotSnapshot batch timeQuery the latest tenant profile.
tenant_credit_snapshotTenant credit balance snapshotSnapshot batch timeQuery tenant credit balances.
tenant_overview_snapshotTenant overview snapshotSnapshot batch timeQuery tenant profile and credit balance data.
model_source_snapshotModel provider snapshotSnapshot batch timeQuery model provider information.
model_snapshotModel snapshotSnapshot batch timeQuery model, status, pricing, and billing configuration.
model_metrics_1mOne-minute model metricsMetric collection timeQuery short-range model metrics.
model_call_eventModel call detail eventsCall event timeQuery call details and errors.
credit_transaction_eventCredit transaction detailsCredit event timeQuery individual credit transactions.
credit_usage_dailyDaily credit usage aggregateUTC day startQuery daily usage; always filter with active = true.
credit_usage_mtd_dailyMonth-to-date credit usage aggregateUTC day startQuery month-to-date usage; always filter with active = true.
model_call_1hHourly model call aggregateUTC hour startBuild long-range call trend dashboards.
model_call_dailyDaily model call aggregateUTC day startBuild long-range call trend dashboards.
model_metrics_1hHourly model metrics aggregateUTC hour startBuild long-range model metric dashboards.
tenant_model_usage_dailyDaily tenant-model usage aggregateUTC day startBuild tenant usage dashboards.
provider_model_usage_dailyDaily provider-model usage aggregateUTC day startBuild provider and model-source usage dashboards.
model_instance_statisticsInstance monitoring dataMetric collection timeQuery instance status, CPU, and memory metrics.
model_instance_card_statisticsCard-level instance monitoring dataMetric collection timeQuery accelerator-card metrics.
model_instance_statistics_1hHourly instance monitoring aggregateCompleted UTC hour startBuild instance trend dashboards.
model_instance_card_statistics_1hHourly card-level monitoring aggregateCompleted UTC hour startBuild card-level trend dashboards.
sync_diagnosticInfluxDB diagnostic dataDiagnostic write timeDo not use for business dashboards.

4. Field Reference ​

Each tag and field is listed separately. A required field is marked in the Constraint column.

4.1 tenant_profile_snapshot ​

CategoryFieldDescriptionTypeConstraint
Tagtenant_idTenant IDString-
Fielddisplay_nameTenant display nameString-
Fieldadmin_user_idTenant administrator user IDString-
Fieldadmin_usernameTenant administrator usernameString-
Fieldtenant_typeTenant type: operator, creator, or euString-
Fieldis_superadminWhether the tenant is a super-admin tenantBoolean-

4.2 tenant_credit_snapshot ​

CategoryFieldDescriptionTypeConstraint
Tagtenant_idTenant IDString-
Fieldcredit_balanceTenant credit balanceDouble-
Fieldbiz_scope_idBusiness scope identifierString-
Fieldcategory_typeAccount categoryString-

4.3 tenant_overview_snapshot ​

CategoryFieldDescriptionTypeConstraint
Tagtenant_idTenant IDString-
Fielddisplay_nameTenant display nameString-
Fieldadmin_usernameTenant administrator usernameString-
Fieldcredit_balanceTenant credit balanceDouble-

4.4 model_source_snapshot ​

CategoryFieldDescriptionTypeConstraint
Tagmodel_source_idModel source or provider IDString-
Fieldmodel_source_nameModel source or provider nameString-
FieldstatusCurrent value is activeString-

4.5 model_snapshot ​

CategoryFieldDescriptionTypeConstraint
Tagmodel_idModel IDString-
Tagmeta_model_authorMeta-model author identifierString-
Tagmodel_typeNormalized model typeString-
Tagis_publicVisibility: public or privateString-
Tagis_aggregatedWhether the model is aggregatedString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_source_idModel source or provider IDString-
Tagstatusonline, scheduled_offline, scheduled_online, or offlineString-
Fieldmodel_nameModel nameString-
Fieldprovider_nameProvider nameString-
Fieldsource_model_idSource model IDString-
Fieldrelated_sub_model_ids_csvRelated sub-model IDs in CSV formatString-
Fieldrelated_sub_model_countNumber of related sub-modelsLong-
Fieldprice_input_tokensInput-token unit priceDouble-
Fieldprice_output_tokensOutput-token unit priceDouble-
Fieldprice_input_cache_tokensCached input-token unit priceDouble-
Fieldprice_output_cache_tokensCached output-token unit priceDouble-
Fieldbilling_rule_typeModel billing rule typeLong-
Fieldbill_configBilling configuration JSON used to reconstruct the price matrixString-
Fieldbilling_main_blockMain billing block: token_billing, image_billing, character_billing, duration_billing, or none_token_billingString-
Fieldbilling_price_matrixComplete price matrix JSONString-
Fieldbilling_price_compare_enabledWhether price comparison is enabledBoolean-
Fieldtoken_cache_enabledWhether cached-token pricing is enabledBoolean-
Fieldtoken_tier_enabledWhether tiered token pricing is enabledBoolean-
Fieldtoken_image_enabledWhether image-token pricing is enabledBoolean-
Fieldwebsearch_billing_enabledWhether WebSearch billing is enabledBoolean-
Fieldbilling_unit_priceGeneric unit price for the main billing blockDouble-
Fieldbilling_original_unit_priceGeneric original unit priceDouble-
Fieldbilling_unitUnit: per_1m_tokens, per_image, per_1m_characters, or per_secondString-
Fieldext_infoModel extension informationString-
Fieldraw_status_codeRaw status codeLong-

4.6 model_metrics_1m ​

CategoryFieldDescriptionTypeConstraint
Tagmodel_idModel IDString-
Tagmeta_model_authorMeta-model author identifierString-
Tagmodel_typeModel typeString-
Tagis_publicWhether the model is publicString-
Tagis_aggregatedWhether the model is aggregatedString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_source_idModel source IDString-
Tagprovider_nameProvider nameString-
Tagmodel_source_nameModel source nameString-
Tagmodel_nameModel nameString-
Fieldrequest_countRequest countDouble-
Fielderror_countError countDouble-
Fieldsuccess_rateSuccess rateDouble-
Fieldinput_tokensInput token countDouble-
Fieldoutput_tokensOutput token countDouble-
Fieldfirst_token_use_total_msTotal time to first token, in millisecondsDouble-
Fieldfinish_token_use_total_msTotal completion time, in millisecondsDouble-
Fieldfirst_token_use_avg_msAverage time to first token, in millisecondsDouble-
Fieldfinish_token_use_avg_msAverage completion time, in millisecondsDouble-
Fieldfail_service_errorService-error countDouble-
Fieldfail_timeoutTimeout countDouble-
Fieldfail_balanceInsufficient-balance countDouble-
Fieldhealth_statusHealth status aggregateDouble-
FieldoperationWrite operation typeStringRequired

4.7 model_call_event ​

CategoryFieldDescriptionTypeConstraint
Tagmodel_idModel IDString-
Tagmeta_model_idMeta-model IDString-
Tagmeta_model_authorMeta-model author identifierString-
Tagmodel_typeModel typeString-
Tagis_publicVisibilityString-
Tagis_aggregatedWhether the model is aggregatedString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_source_idModel source IDString-
Tagcall_tenant_idCalling tenant IDString-
Tagcall_user_idCalling user IDString-
Tagstatussuccess, rate_limited, or failString-
Tagerror_typeError typeString-
TagsourceCall sourceString-
Tagprovider_nameProvider nameString-
Tagmodel_source_nameModel source nameString-
Tagmodel_nameModel nameString-
Tagcall_tenant_nameCalling tenant nameString-
Fieldrequest_idRequest IDString-
Fieldcall_user_nameCalling usernameString-
Fieldinvoke_model_idActually invoked model IDString-
Fieldrelated_sub_model_ids_csvRelated sub-model IDsString-
Fieldinput_tokensInput token countDouble-
Fieldoutput_tokensOutput token countDouble-
Fieldinput_cache_tokensCached input-token countDouble-
Fieldoutput_cache_tokensCached output-token countDouble-
Fieldfirst_token_time_msTime to first token, in millisecondsDouble-
Fieldfinish_token_time_msCompletion time, in millisecondsDouble-
Fieldcall_duration_msTotal call duration, in millisecondsDouble-
Fieldcall_start_timeCall start timeString-
Fieldcall_end_timeCall end timeString-
Fielderror_messageError messageString-
FieldoperationWrite operation typeStringRequired

4.8 credit_transaction_event ​

CategoryFieldDescriptionTypeConstraint
Tagtransaction_typeincome or deductionString-
Tagsub_typefree or chargeString-
Tagmodel_idModel IDString-
Tagmeta_model_idMeta-model IDString-
Tagmeta_model_authorMeta-model author identifierString-
Tagmodel_typeModel typeString-
Tagis_publicVisibilityString-
Tagis_aggregatedWhether the model is aggregatedString-
Tagmodel_source_idModel source IDString-
Tagowner_user_idOwner user IDString-
Tagowner_tenant_idOwner tenant IDString-
Tagcaller_user_idCalling user IDString-
Tagcaller_tenant_idCalling tenant IDString-
Tagprovider_tenant_idProvider tenant IDString-
Tagowner_tenant_nameOwner tenant nameString-
Tagcaller_tenant_nameCalling tenant nameString-
Tagprovider_nameProvider nameString-
Tagmodel_source_nameModel source nameString-
Tagmodel_nameModel nameString-
Fieldrecord_idCredit record IDString-
Fieldbilling_fact_idStable billing fact IDString-
Fieldowner_user_nameOwner username; may be emptyString-
Fieldcaller_user_nameCalling username; may be emptyString-
Fieldinput_token_creditsCredits for input tokensDouble-
Fieldoutput_token_creditsCredits for output tokensDouble-
Fieldtotal_creditsTotal creditsDouble-
Fielddeducted_creditsCredits actually deductedDouble-
Fieldround_off_creditsRounded-off creditsDouble-
Fieldinput_cache_token_creditsCredits for cached input tokensDouble-
Fieldoutput_cache_token_creditsCredits for cached output tokensDouble-
Fieldcache_hit_tokensCached token countDouble-
Fieldtotal_tokensTotal token countDouble-
Fieldprompt_tokensInput token countDouble-
Fieldcompletion_tokensOutput token countDouble-
Fieldpricing_specificationsPricing rule descriptionString-
Fieldpricing_snapshotBilling price snapshot JSONString-
Fieldusage_detailBilling usage detail JSONString-
Fieldfree_total_tokensFree token countDouble-
Fieldcharge_total_tokensBillable token countDouble-
Fieldinternal_callWhether the call is internalBoolean-
FieldoperationWrite operation typeStringRequired

4.9 credit_usage_daily ​

CategoryFieldDescriptionTypeConstraint
Tagproduct_typeCurrent value is modelString-
Tagproduct_idProduct or model IDString-
Tagtenant_idCalling tenant IDString-
Taguser_idCalling user IDString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmeta_model_idMeta-model IDString-
Tagmeta_model_authorMeta-model author identifierString-
Fieldproduct_nameProduct or model nameString-
Fieldtenant_nameCalling tenant nameString-
Fielduser_nameCalling usernameString-
Fieldprovider_nameProvider nameString-
Fieldconsume_credits_dayCumulative credits consumed todayDouble-
Fieldconsume_deducted_credits_dayCumulative credits actually deducted todayDouble-
Fieldconsume_round_off_dayCumulative rounded-off consumption todayDouble-
Fieldincome_credits_dayCumulative credits earned todayDouble-
Fieldincome_deducted_credits_dayCumulative settled income todayDouble-
Fieldincome_round_off_dayCumulative rounded-off income todayDouble-
FieldactiveWhether this is the current valid pointBoolean-

4.10 credit_usage_mtd_daily ​

CategoryFieldDescriptionTypeConstraint
Tagstat_monthStatistics month in YYYY-MM formatString-
Tagproduct_typeCurrent value is modelString-
Tagproduct_idProduct or model IDString-
Tagtenant_idCalling tenant IDString-
Taguser_idCalling user IDString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmeta_model_idMeta-model IDString-
Tagmeta_model_authorMeta-model author identifierString-
Fieldproduct_nameProduct or model nameString-
Fieldtenant_nameCalling tenant nameString-
Fielduser_nameCalling usernameString-
Fieldprovider_nameProvider nameString-
Fieldconsume_credits_mtdCumulative credits consumed in the monthDouble-
Fieldconsume_deducted_credits_mtdCumulative credits actually deducted in the monthDouble-
Fieldconsume_round_off_mtdCumulative rounded-off consumption in the monthDouble-
Fieldincome_credits_mtdCumulative credits earned in the monthDouble-
Fieldincome_deducted_credits_mtdCumulative settled income in the monthDouble-
Fieldincome_round_off_mtdCumulative rounded-off income in the monthDouble-
FieldactiveWhether this is the current valid pointBoolean-

4.11 model_call_1h ​

CategoryFieldDescriptionTypeConstraint
Tagmodel_idModel IDString-
Tagmeta_model_idMeta-model IDString-
Tagmeta_model_authorMeta-model authorString-
Tagmodel_typeModel typeString-
Tagis_publicWhether the model is publicString-
Tagis_aggregatedWhether the model is aggregatedString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_source_idModel source IDString-
Tagcall_tenant_idCalling tenant IDString-
Tagstatussuccess, rate_limited, or failString-
Tagerror_typeError typeString-
TagsourceCall sourceString-
Tagprovider_nameProvider nameString-
Tagmodel_source_nameModel source nameString-
Tagmodel_nameModel nameString-
Tagcall_tenant_nameCalling tenant nameString-
Fieldrequest_countRequest countDouble-
Fieldsuccess_countSuccessful request countDouble-
Fielderror_countNon-success countDouble-
Fieldrate_limited_countRate-limited request countDouble-
Fieldfail_countOrdinary failure countDouble-
Fieldsuccess_rateSuccess rateDouble-
Fieldinput_tokensTotal input tokensDouble-
Fieldoutput_tokensTotal output tokensDouble-
Fieldinput_cache_tokensTotal cached input tokensDouble-
Fieldoutput_cache_tokensTotal cached output tokensDouble-
Fieldavg_first_token_time_msAverage time to first tokenDouble-
Fieldavg_finish_token_time_msAverage completion timeDouble-
Fieldavg_call_duration_msAverage call durationDouble-

4.12 model_call_daily ​

The fields are the same as model_call_1h, with the addition of the following tag:

CategoryFieldDescriptionTypeConstraint
Tagstat_dateStatistics dateString-

4.13 model_metrics_1h ​

The dimensions and fields are the same as model_metrics_1m, except that the values are aggregated by UTC hour. The metric fields are:

CategoryFieldDescriptionTypeConstraint
Fieldrequest_countRequest countDouble-
Fieldsuccess_countSuccessful request countDouble-
Fielderror_countError countDouble-
Fieldsuccess_rateSuccess rateDouble-
Fieldinput_tokensTotal input tokensDouble-
Fieldoutput_tokensTotal output tokensDouble-
Fieldfirst_token_use_total_msTotal time to first tokenDouble-
Fieldfinish_token_use_total_msTotal completion timeDouble-
Fieldfirst_token_use_avg_msAverage time to first tokenDouble-
Fieldfinish_token_use_avg_msAverage completion timeDouble-
Fieldfail_service_errorService-error countDouble-
Fieldfail_timeoutTimeout countDouble-
Fieldfail_balanceInsufficient-balance countDouble-
Fieldhealth_statusHealth status aggregateDouble-

4.14 tenant_model_usage_daily ​

CategoryFieldDescriptionTypeConstraint
Tagstat_dateStatistics dateString-
Tagtenant_idCalling tenant IDString-
Tagmodel_idModel IDString-
Tagmeta_model_idMeta-model IDString-
Tagmeta_model_authorMeta-model authorString-
Tagmodel_typeModel typeString-
Tagis_publicWhether the model is publicString-
Tagis_aggregatedWhether the model is aggregatedString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_source_idModel source IDString-
Tagtenant_nameTenant nameString-
Tagprovider_nameProvider nameString-
Tagmodel_source_nameModel source nameString-
Tagmodel_nameModel nameString-
Fieldrequest_countRequest countDouble-
Fieldsuccess_countSuccessful request countDouble-
Fielderror_countNon-success countDouble-
Fieldrate_limited_countRate-limited request countDouble-
Fieldfail_countOrdinary failure countDouble-
Fieldsuccess_rateSuccess rateDouble-
Fieldinput_tokensTotal input tokensDouble-
Fieldoutput_tokensTotal output tokensDouble-
Fieldinput_cache_tokensTotal cached input tokensDouble-
Fieldoutput_cache_tokensTotal cached output tokensDouble-
Fieldavg_first_token_time_msAverage time to first tokenDouble-
Fieldavg_finish_token_time_msAverage completion timeDouble-
Fieldavg_call_duration_msAverage call durationDouble-

4.15 provider_model_usage_daily ​

This measurement uses provider dimensions instead of tenant dimensions. Its metric fields are:

CategoryFieldDescriptionTypeConstraint
Tagstat_dateStatistics dateString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_idModel IDString-
Tagmeta_model_idMeta-model IDString-
Tagmeta_model_authorMeta-model authorString-
Tagmodel_typeModel typeString-
Tagis_publicWhether the model is publicString-
Tagis_aggregatedWhether the model is aggregatedString-
Tagmodel_source_idModel source IDString-
Tagprovider_nameProvider nameString-
Tagmodel_source_nameModel source nameString-
Tagmodel_nameModel nameString-
Fieldrequest_countRequest countDouble-
Fieldsuccess_countSuccessful request countDouble-
Fielderror_countError countDouble-
Fieldsuccess_rateSuccess rateDouble-
Fieldinput_tokensTotal input tokensDouble-
Fieldoutput_tokensTotal output tokensDouble-
Fieldfirst_token_use_total_msTotal time to first tokenDouble-
Fieldfinish_token_use_total_msTotal completion timeDouble-
Fieldfirst_token_use_avg_msAverage time to first tokenDouble-
Fieldfinish_token_use_avg_msAverage completion timeDouble-
Fieldfail_service_errorService-error countDouble-
Fieldfail_timeoutTimeout countDouble-
Fieldfail_balanceInsufficient-balance countDouble-
Fieldhealth_statusHealth status aggregateDouble-

4.16 model_instance_statistics ​

CategoryFieldDescriptionTypeConstraint
Tagrelated_model_idRelated model IDString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_instance_idModel instance IDString-
Tagdeploy_modesingle_instance, multi_instance, or clusterString-
Tagis_clustertrue for cluster mode; otherwise falseString-
TagtypeMetric source type identifierString-
Fieldrelated_model_nameRelated model nameString-
Fieldprovider_tenant_nameProvider tenant nameString-
Fieldmodel_instance_nameModel instance nameString-
Fieldflavor_cpuCPU specificationDouble-
Fieldflavor_memMemory specificationDouble-
Fieldflavor_ai_cardAccelerator-card specificationDouble-
Fieldflavor_ai_card_typeAccelerator-card typeString-
FieldstatusInstance status valueDouble-
Fieldcpu_utilRaw CPU utilization; no automatic unit conversionDouble-
Fieldmem_utilRaw memory utilization; no automatic unit conversionDouble-

status, cpu_util, and mem_util are merged by timestamp. A point may contain only some of these fields.

4.17 model_instance_card_statistics ​

CategoryFieldDescriptionTypeConstraint
Tagrelated_model_idRelated model IDString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_instance_idModel instance IDString-
Tagcard_noCard number, for example nvidia0String-
Tagdeploy_modesingle_instance, multi_instance, or clusterString-
Tagis_clustertrue for cluster mode; otherwise falseString-
TagtypeMetric source type identifierString-
Fieldrelated_model_nameRelated model nameString-
Fieldprovider_tenant_nameProvider tenant nameString-
Fieldmodel_instance_nameModel instance nameString-
Fieldxpu_utilRaw accelerator utilization; no automatic unit conversionDouble-
Fieldxpu_mem_utilRaw accelerator-memory utilization; no automatic unit conversionDouble-
Fieldxpu_gpu_power_usageRaw GPU power usage; no automatic unit conversionDouble-
Fieldxpu_gpu_temperatureRaw GPU temperature; no automatic unit conversionDouble-

Different metrics for the same timestamp and card_no are merged into one point.

4.18 model_instance_statistics_1h ​

CategoryFieldDescriptionTypeConstraint
Tagrelated_model_idRelated model IDString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_instance_idModel instance IDString-
Tagdeploy_modesingle_instance, multi_instance, or clusterString-
Tagis_clustertrue for cluster mode; otherwise falseString-
TagtypeMetric source type identifierString-
Tagmeta_model_idMeta-model IDString-
Fieldrelated_model_nameRelated model nameString-
Fieldprovider_tenant_nameProvider tenant nameString-
Fieldmodel_instance_nameModel instance nameString-
Fieldflavor_cpuCPU specificationDouble-
Fieldflavor_memMemory specificationDouble-
Fieldflavor_ai_cardAccelerator-card specificationDouble-
Fieldflavor_ai_card_typeAccelerator-card typeString-
Fieldstatus_lastLast finite status value in the completed UTC hourDouble-
Fieldcpu_util_avgAverage CPU utilization in the completed UTC hourDouble-
Fieldcpu_util_maxMaximum CPU utilization in the completed UTC hourDouble-
Fieldmem_util_avgAverage memory utilization in the completed UTC hourDouble-
Fieldmem_util_maxMaximum memory utilization in the completed UTC hourDouble-
Fieldsample_countNumber of distinct valid sample timestamps in the hourLong-

4.19 model_instance_card_statistics_1h ​

CategoryFieldDescriptionTypeConstraint
Tagrelated_model_idRelated model IDString-
Tagprovider_tenant_idProvider tenant IDString-
Tagmodel_instance_idModel instance IDString-
Tagcard_noCard number, for example nvidia0String-
Tagdeploy_modesingle_instance, multi_instance, or clusterString-
Tagis_clustertrue for cluster mode; otherwise falseString-
TagtypeMetric source type identifierString-
Tagmeta_model_idMeta-model IDString-
Fieldrelated_model_nameRelated model nameString-
Fieldprovider_tenant_nameProvider tenant nameString-
Fieldmodel_instance_nameModel instance nameString-
Fieldxpu_util_avgAverage accelerator utilization in the completed UTC hourDouble-
Fieldxpu_util_maxMaximum accelerator utilization in the completed UTC hourDouble-
Fieldxpu_mem_util_avgAverage accelerator-memory utilization in the completed UTC hourDouble-
Fieldxpu_mem_util_maxMaximum accelerator-memory utilization in the completed UTC hourDouble-
Fieldxpu_gpu_power_usage_avgAverage GPU power usage in the completed UTC hourDouble-
Fieldxpu_gpu_power_usage_maxMaximum GPU power usage in the completed UTC hourDouble-
Fieldxpu_gpu_temperature_avgAverage GPU temperature in the completed UTC hourDouble-
Fieldxpu_gpu_temperature_maxMaximum GPU temperature in the completed UTC hourDouble-
Fieldsample_countNumber of distinct valid sample timestamps for the card in the hourLong-

4.20 sync_diagnostic ​

CategoryFieldDescriptionTypeConstraint
Tagdiag_idDiagnostic IDStringRequired
TagpurposeDiagnostic purposeString-
FieldvalueDiagnostic valueDouble-
FieldstageDiagnostic stageString-

5. Query Constraints ​

  • Use UTC ISO-8601 for all time parameters, for example 2026-04-29T04:06:15Z.
  • Business queries against credit_usage_daily and credit_usage_mtd_daily must include active = true.
  • These measurements are credit-usage aggregates. Confirm the business rules before using them as settlement amounts.
  • Do not use unfiltered COUNT(*), last(*), or dimension scans as credit-usage metrics.
  • For long time ranges, prefer the hourly or daily aggregate measurements in Grafana.
  • If an aggregate query does not select time, do not add ORDER BY time.
  • Raw model_instance_* values are not automatically unit-converted. Confirm the metric scale before setting thresholds or displaying units.
  • model_instance_statistics.status and status_last are metric values, not business status codes.
  • model_instance_statistics_1h and model_instance_card_statistics_1h contain only completed UTC hour buckets.
  • sample_count is the number of distinct timestamps after merging related metrics. It is not the sample count of one individual metric.
  • InfluxDB point identity is determined by the measurement, all tags, and the timestamp. Retrying the same identity overwrites the existing point.

6. SQL Examples ​

sql
-- Daily credit usage; active points are required
SELECT tenant_id, user_id, product_id,
       SUM(consume_credits_day) AS consume_credits_day,
       SUM(income_credits_day) AS income_credits_day
FROM credit_usage_daily
WHERE active = true
  AND time >= TIMESTAMP '2026-04-01T00:00:00Z'
  AND time <  TIMESTAMP '2026-04-02T00:00:00Z'
GROUP BY tenant_id, user_id, product_id;
sql
-- Month-to-date credit usage; active points are required
SELECT tenant_id, user_id, product_id,
       SUM(consume_credits_mtd) AS consume_credits_mtd,
       SUM(income_credits_mtd) AS income_credits_mtd
FROM credit_usage_mtd_daily
WHERE active = true
  AND stat_month = '2026-04'
GROUP BY tenant_id, user_id, product_id;
sql
-- Prefer aggregate measurements for long-range dashboards
SELECT stat_date, model_id,
       SUM(request_count) AS request_count,
       SUM(error_count) AS error_count
FROM model_call_daily
WHERE time >= TIMESTAMP '2026-04-01T00:00:00Z'
  AND time <  TIMESTAMP '2026-05-01T00:00:00Z'
GROUP BY stat_date, model_id
ORDER BY stat_date;
sql
-- Limit the time range when inspecting call details
SELECT time, request_id, model_id, call_tenant_id, status, error_type, error_message
FROM model_call_event
WHERE time >= TIMESTAMP '2026-04-29T00:00:00Z'
  AND time <  TIMESTAMP '2026-04-30T00:00:00Z'
ORDER BY time DESC
LIMIT 100;
sql
-- Check whether instance metrics exist for each deployment mode
SELECT deploy_mode,
       COUNT(*) AS point_count,
       MAX(time) AS latest_time
FROM model_instance_statistics
WHERE time >= CURRENT_TIMESTAMP - INTERVAL '24 hours'
GROUP BY deploy_mode
ORDER BY deploy_mode;
sql
-- View recent instance metrics and model associations
SELECT time,
       model_instance_id,
       deploy_mode,
       is_cluster,
       related_model_id,
       status,
       cpu_util,
       mem_util
FROM model_instance_statistics
WHERE time >= CURRENT_TIMESTAMP - INTERVAL '24 hours'
ORDER BY time DESC
LIMIT 100;
sql
-- View recent card-level metrics
SELECT time,
       model_instance_id,
       card_no,
       deploy_mode,
       xpu_util,
       xpu_mem_util,
       xpu_gpu_power_usage,
       xpu_gpu_temperature
FROM model_instance_card_statistics
WHERE time >= CURRENT_TIMESTAMP - INTERVAL '24 hours'
ORDER BY time DESC
LIMIT 100;
sql
-- View completed hourly instance buckets
SELECT time,
       model_instance_id,
       deploy_mode,
       status_last,
       cpu_util_avg,
       cpu_util_max,
       mem_util_avg,
       mem_util_max,
       sample_count
FROM model_instance_statistics_1h
WHERE time >= CURRENT_TIMESTAMP - INTERVAL '24 hours'
ORDER BY time DESC
LIMIT 100;
sql
-- View completed hourly card-level buckets
SELECT time,
       model_instance_id,
       card_no,
       deploy_mode,
       xpu_util_avg,
       xpu_util_max,
       xpu_mem_util_avg,
       xpu_mem_util_max,
       xpu_gpu_power_usage_avg,
       xpu_gpu_power_usage_max,
       xpu_gpu_temperature_avg,
       xpu_gpu_temperature_max,
       sample_count
FROM model_instance_card_statistics_1h
WHERE time >= CURRENT_TIMESTAMP - INTERVAL '24 hours'
ORDER BY time DESC
LIMIT 100;