Skip to main content

Module metrics

Module metrics 

Source

Re-exportsยง

pub use crate::semantic::SemanticIndex;

Modulesยง

resource_info ๐Ÿ”’
Resource descriptor synthesized from OTLP metrics requests, so the entity graph reads one table instead of scanning every logical metric table for attributes the promote filter may have dropped.
translator ๐Ÿ”’

Structsยง

DEFAULT_PROMOTE_ATTRS_SET ๐Ÿ”’
MetricsConversion
Result of converting one OTLP metrics request.
ServiceIdentity ๐Ÿ”’
Prometheus-style (job, instance) identity. Per the OTel Prometheus compatibility spec job folds in service.namespace when present; a resource without service.name gets no job rather than a fabricated one. Both fields are optional strings, so a named type keeps a swapped destructuring from type-checking at the call sites.

Enumsยง

AttributeType ๐Ÿ”’
ExponentialHistogramRejection ๐Ÿ”’

Constantsยง

APPROXIMATE_COLUMN_COUNT ๐Ÿ”’
the default column count for table writer
BUCKET_TABLE_SUFFIX ๐Ÿ”’
COUNT_TABLE_SUFFIX ๐Ÿ”’
DEFAULT_PROMOTE_ATTRS ๐Ÿ”’
HISTOGRAM_LE_COLUMN ๐Ÿ”’
INSTANCE_KEY ๐Ÿ”’
JOB_KEY ๐Ÿ”’
MAX_EXPONENTIAL_HISTOGRAM_SCALE ๐Ÿ”’
MAX_REJECTION_MESSAGE_BYTES ๐Ÿ”’
MIN_EXPONENTIAL_HISTOGRAM_SCALE ๐Ÿ”’
OTEL_RESOURCE_INFO_TABLE_NAME
Prefixed like the other engine-managed tables, so a user metric is unlikely to claim the name.
OTEL_SCOPE_NAME ๐Ÿ”’
OTEL_SCOPE_SCHEMA_URL ๐Ÿ”’
OTEL_SCOPE_VERSION ๐Ÿ”’
SUM_TABLE_SUFFIX ๐Ÿ”’

Functionsยง

add_accepted_data_points ๐Ÿ”’
append_rejection_message ๐Ÿ”’
convert_bucket_range ๐Ÿ”’
downscale_bucket_index ๐Ÿ”’
emitted_semantic_tables ๐Ÿ”’
The tables a metric emits and their per-table metric.type. Histogram fans out into _bucket (the histogram) plus _sum/_count counters; summary fans out into the quantile table plus _count/_sum counters (legacy summary stays a single table).
encode_exponential_histogram ๐Ÿ”’
encode_gauge ๐Ÿ”’
encode this gauge metric
encode_histogram ๐Ÿ”’
Encode histogram data. This function returns 3 insert requests for 3 tables.
encode_metrics ๐Ÿ”’
encode_sum ๐Ÿ”’
encode this sum metric
encode_summary ๐Ÿ”’
exponential_histogram_gate ๐Ÿ”’
Whole-metric acceptance, decided once for the encoder and for the resource descriptor, which must not describe a resource whose data was rejected. Individual points can still fail exponential_histogram_value.
exponential_histogram_value ๐Ÿ”’
from_metric_type ๐Ÿ”’
has_no_recorded_value ๐Ÿ”’
histogram_data_point_rejection ๐Ÿ”’
legacy_normalize_otlp_name
Normalize otlp instrumentation, metric and attribute names
process_resource_attrs ๐Ÿ”’
process_scope_attrs ๐Ÿ”’
record_metric_semantics ๐Ÿ”’
Records the declared metric-level semantic keys for every table this metric emits.
reject_data_points ๐Ÿ”’
scalar_value_string ๐Ÿ”’
Non-scalar values (bool, arrays, maps, bytes) are not representable as tags.
service_identity ๐Ÿ”’
string_key_value ๐Ÿ”’
temporality_value ๐Ÿ”’
Maps OTLP aggregation_temporality to the semantic value, or None when the instrument has no temporality (gauge/summary) or it is unspecified.
timestamp_millis ๐Ÿ”’
to_grpc_insert_requests
Convert OpenTelemetry metrics to GreptimeDB insert requests
validate_sample_kinds ๐Ÿ”’
write_attributes ๐Ÿ”’
write_data_point_value ๐Ÿ”’
write_tags_and_timestamp ๐Ÿ”’
write_temporality_tag ๐Ÿ”’
write_timestamp ๐Ÿ”’