Modulesยง
- semantic ๐
- Per-table semantic metadata accumulated during one OTLP metrics encode pass.
- translator ๐
Structsยง
- DEFAULT_
PROMOTE_ ๐ATTRS_ SET - Semantic
Index - Index of
{table_name -> {semantic_key -> value}}built while encoding.
Enumsยง
- Attribute
Type ๐
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 ๐
- METRIC_
TYPE_ ๐COUNTER - METRIC_
TYPE_ ๐GAUGE - METRIC_
TYPE_ ๐HISTOGRAM - METRIC_
TYPE_ ๐SUMMARY - METRIC_
TYPE_ ๐UPDOWN_ COUNTER - OTEL_
SCOPE_ ๐NAME - OTEL_
SCOPE_ ๐SCHEMA_ URL - OTEL_
SCOPE_ ๐VERSION - SUM_
TABLE_ ๐SUFFIX
Functionsยง
- emitted_
semantic_ ๐tables - The tables a metric emits and their per-table
metric.type. Histogram fans out into_bucket(the histogram) plus_sum/_countcounters; summary fans out into the quantile table plus_count/_sumcounters (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 ๐ - from_
metric_ ๐type - 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.
- temporality_
value ๐ - Maps OTLP
aggregation_temporalityto the semantic value, orNonewhen the instrument has no temporality (gauge/summary) or it is unspecified. - to_
grpc_ insert_ requests - Convert OpenTelemetry metrics to GreptimeDB insert requests
- write_
attributes ๐ - write_
data_ ๐point_ value - write_
tags_ ๐and_ timestamp - write_
timestamp ๐