mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-31 04:10:38 +00:00
1 line
11 KiB
HTML
1 line
11 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `metrics` mod in crate `servers`."><title>servers::otlp::metrics - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="servers" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module metrics</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../servers/index.html">servers</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module metrics</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In servers::<wbr>otlp</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">servers</a>::<wbr><a href="../index.html">otlp</a></div><h1>Module <span>metrics</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/servers/otlp/metrics.rs.html#15-1724">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.DEFAULT_PROMOTE_ATTRS_SET.html" title="struct servers::otlp::metrics::DEFAULT_PROMOTE_ATTRS_SET">DEFAULT_<wbr>PROMOTE_<wbr>ATTRS_<wbr>SET</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.NON_ALPHA_NUM_CHAR.html" title="struct servers::otlp::metrics::NON_ALPHA_NUM_CHAR">NON_<wbr>ALPHA_<wbr>NUM_<wbr>CHAR</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.PER_UNIT_MAP.html" title="struct servers::otlp::metrics::PER_UNIT_MAP">PER_<wbr>UNIT_<wbr>MAP</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.UNIT_MAP.html" title="struct servers::otlp::metrics::UNIT_MAP">UNIT_<wbr>MAP</a><span title="Restricted Visibility"> 🔒</span> </dt></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.AttributeType.html" title="enum servers::otlp::metrics::AttributeType">Attribute<wbr>Type</a><span title="Restricted Visibility"> 🔒</span> </dt></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.APPROXIMATE_COLUMN_COUNT.html" title="constant servers::otlp::metrics::APPROXIMATE_COLUMN_COUNT">APPROXIMATE_<wbr>COLUMN_<wbr>COUNT</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>the default column count for table writer</dd><dt><a class="constant" href="constant.COUNT_TABLE_SUFFIX.html" title="constant servers::otlp::metrics::COUNT_TABLE_SUFFIX">COUNT_<wbr>TABLE_<wbr>SUFFIX</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.DEFAULT_PROMOTE_ATTRS.html" title="constant servers::otlp::metrics::DEFAULT_PROMOTE_ATTRS">DEFAULT_<wbr>PROMOTE_<wbr>ATTRS</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.DOUBLE_UNDERSCORE.html" title="constant servers::otlp::metrics::DOUBLE_UNDERSCORE">DOUBLE_<wbr>UNDERSCORE</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.HISTOGRAM_LE_COLUMN.html" title="constant servers::otlp::metrics::HISTOGRAM_LE_COLUMN">HISTOGRAM_<wbr>LE_<wbr>COLUMN</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.INSTANCE_KEY.html" title="constant servers::otlp::metrics::INSTANCE_KEY">INSTANCE_<wbr>KEY</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.JOB_KEY.html" title="constant servers::otlp::metrics::JOB_KEY">JOB_KEY</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.OTEL_SCOPE_NAME.html" title="constant servers::otlp::metrics::OTEL_SCOPE_NAME">OTEL_<wbr>SCOPE_<wbr>NAME</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.OTEL_SCOPE_SCHEMA_URL.html" title="constant servers::otlp::metrics::OTEL_SCOPE_SCHEMA_URL">OTEL_<wbr>SCOPE_<wbr>SCHEMA_<wbr>URL</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.OTEL_SCOPE_VERSION.html" title="constant servers::otlp::metrics::OTEL_SCOPE_VERSION">OTEL_<wbr>SCOPE_<wbr>VERSION</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.RATIO.html" title="constant servers::otlp::metrics::RATIO">RATIO</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.SUM_TABLE_SUFFIX.html" title="constant servers::otlp::metrics::SUM_TABLE_SUFFIX">SUM_<wbr>TABLE_<wbr>SUFFIX</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.TOTAL.html" title="constant servers::otlp::metrics::TOTAL">TOTAL</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="constant" href="constant.UNDERSCORE.html" title="constant servers::otlp::metrics::UNDERSCORE">UNDERSCORE</a><span title="Restricted Visibility"> 🔒</span> </dt></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.build_unit_suffix.html" title="fn servers::otlp::metrics::build_unit_suffix">build_<wbr>unit_<wbr>suffix</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.check_unit.html" title="fn servers::otlp::metrics::check_unit">check_<wbr>unit</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.clean_unit_name.html" title="fn servers::otlp::metrics::clean_unit_name">clean_<wbr>unit_<wbr>name</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.encode_exponential_histogram.html" title="fn servers::otlp::metrics::encode_exponential_histogram">encode_<wbr>exponential_<wbr>histogram</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.encode_gauge.html" title="fn servers::otlp::metrics::encode_gauge">encode_<wbr>gauge</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>encode this gauge metric</dd><dt><a class="fn" href="fn.encode_histogram.html" title="fn servers::otlp::metrics::encode_histogram">encode_<wbr>histogram</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Encode histogram data. This function returns 3 insert requests for 3 tables.</dd><dt><a class="fn" href="fn.encode_metrics.html" title="fn servers::otlp::metrics::encode_metrics">encode_<wbr>metrics</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.encode_sum.html" title="fn servers::otlp::metrics::encode_sum">encode_<wbr>sum</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>encode this sum metric</dd><dt><a class="fn" href="fn.encode_summary.html" title="fn servers::otlp::metrics::encode_summary">encode_<wbr>summary</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.from_metric_type.html" title="fn servers::otlp::metrics::from_metric_type">from_<wbr>metric_<wbr>type</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.legacy_normalize_otlp_name.html" title="fn servers::otlp::metrics::legacy_normalize_otlp_name">legacy_<wbr>normalize_<wbr>otlp_<wbr>name</a></dt><dd>Normalize otlp instrumentation, metric and attribute names</dd><dt><a class="fn" href="fn.normalize_label_name.html" title="fn servers::otlp::metrics::normalize_label_name">normalize_<wbr>label_<wbr>name</a></dt><dt><a class="fn" href="fn.normalize_metric_name.html" title="fn servers::otlp::metrics::normalize_metric_name">normalize_<wbr>metric_<wbr>name</a></dt><dt><a class="fn" href="fn.process_resource_attrs.html" title="fn servers::otlp::metrics::process_resource_attrs">process_<wbr>resource_<wbr>attrs</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.process_scope_attrs.html" title="fn servers::otlp::metrics::process_scope_attrs">process_<wbr>scope_<wbr>attrs</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.to_grpc_insert_requests.html" title="fn servers::otlp::metrics::to_grpc_insert_requests">to_<wbr>grpc_<wbr>insert_<wbr>requests</a></dt><dd>Convert OpenTelemetry metrics to GreptimeDB insert requests</dd><dt><a class="fn" href="fn.write_attributes.html" title="fn servers::otlp::metrics::write_attributes">write_<wbr>attributes</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.write_data_point_value.html" title="fn servers::otlp::metrics::write_data_point_value">write_<wbr>data_<wbr>point_<wbr>value</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.write_tags_and_timestamp.html" title="fn servers::otlp::metrics::write_tags_and_timestamp">write_<wbr>tags_<wbr>and_<wbr>timestamp</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.write_timestamp.html" title="fn servers::otlp::metrics::write_timestamp">write_<wbr>timestamp</a><span title="Restricted Visibility"> 🔒</span> </dt></dl></section></div></main></body></html> |