mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-25 17:30:41 +00:00
5 lines
10 KiB
HTML
5 lines
10 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="prometheus protocol supportings handles prometheus remote_write, remote_read logic"><title>servers::prom_store - 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-e56847b5.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.92.0-nightly (fa3155a64 2025-09-30)" data-channel="nightly" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.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"><!--[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 prom_store</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-rc.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module prom_<wbr>store</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="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate servers</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"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">servers</a></div><h1>Module <span>prom_<wbr>store</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/prom_store.rs.html#15-957">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>prometheus protocol supportings
|
||
handles prometheus remote_write, remote_read logic</p>
|
||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Metrics.html" title="struct servers::prom_store::Metrics">Metrics</a></dt><dd>Metrics for push gateway protocol</dd><dt><a class="struct" href="struct.TimeSeriesId.html" title="struct servers::prom_store::TimeSeriesId">Time<wbr>Series<wbr>Id</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.DATABASE_LABEL.html" title="constant servers::prom_store::DATABASE_LABEL">DATABASE_<wbr>LABEL</a></dt><dd>special label for selecting database name on remote write</dd><dt><a class="constant" href="constant.DATABASE_LABEL_ALT.html" title="constant servers::prom_store::DATABASE_LABEL_ALT">DATABASE_<wbr>LABEL_<wbr>ALT</a></dt><dt><a class="constant" href="constant.DATABASE_LABEL_ALT_BYTES.html" title="constant servers::prom_store::DATABASE_LABEL_ALT_BYTES">DATABASE_<wbr>LABEL_<wbr>ALT_<wbr>BYTES</a></dt><dt><a class="constant" href="constant.DATABASE_LABEL_BYTES.html" title="constant servers::prom_store::DATABASE_LABEL_BYTES">DATABASE_<wbr>LABEL_<wbr>BYTES</a></dt><dt><a class="constant" href="constant.FIELD_NAME_LABEL.html" title="constant servers::prom_store::FIELD_NAME_LABEL">FIELD_<wbr>NAME_<wbr>LABEL</a></dt><dd>The same as <code>FIELD_COLUMN_MATCHER</code> in <code>promql</code> crate</dd><dt><a class="constant" href="constant.METRIC_NAME_LABEL.html" title="constant servers::prom_store::METRIC_NAME_LABEL">METRIC_<wbr>NAME_<wbr>LABEL</a></dt><dt><a class="constant" href="constant.METRIC_NAME_LABEL_BYTES.html" title="constant servers::prom_store::METRIC_NAME_LABEL_BYTES">METRIC_<wbr>NAME_<wbr>LABEL_<wbr>BYTES</a></dt><dt><a class="constant" href="constant.PHYSICAL_TABLE_LABEL.html" title="constant servers::prom_store::PHYSICAL_TABLE_LABEL">PHYSICAL_<wbr>TABLE_<wbr>LABEL</a></dt><dd>special label for selecting physical table name on remote write</dd><dt><a class="constant" href="constant.PHYSICAL_TABLE_LABEL_ALT.html" title="constant servers::prom_store::PHYSICAL_TABLE_LABEL_ALT">PHYSICAL_<wbr>TABLE_<wbr>LABEL_<wbr>ALT</a></dt><dt><a class="constant" href="constant.PHYSICAL_TABLE_LABEL_ALT_BYTES.html" title="constant servers::prom_store::PHYSICAL_TABLE_LABEL_ALT_BYTES">PHYSICAL_<wbr>TABLE_<wbr>LABEL_<wbr>ALT_<wbr>BYTES</a></dt><dt><a class="constant" href="constant.PHYSICAL_TABLE_LABEL_BYTES.html" title="constant servers::prom_store::PHYSICAL_TABLE_LABEL_BYTES">PHYSICAL_<wbr>TABLE_<wbr>LABEL_<wbr>BYTES</a></dt><dt><a class="constant" href="constant.SCHEMA_LABEL.html" title="constant servers::prom_store::SCHEMA_LABEL">SCHEMA_<wbr>LABEL</a><wbr><span class="stab deprecated" title="">Deprecated</span></dt><dd>deprecated, use DATABASE_LABEL instead</dd><dt><a class="constant" href="constant.SCHEMA_LABEL_BYTES.html" title="constant servers::prom_store::SCHEMA_LABEL_BYTES">SCHEMA_<wbr>LABEL_<wbr>BYTES</a><wbr><span class="stab deprecated" title="">Deprecated</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.collect_timeseries_ids.html" title="fn servers::prom_store::collect_timeseries_ids">collect_<wbr>timeseries_<wbr>ids</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Collect each row’s timeseries id
|
||
This processing is ugly, hope <a href="https://github.com/GreptimeTeam/greptimedb/issues/336">https://github.com/GreptimeTeam/greptimedb/issues/336</a> making some progress in future.</dd><dt><a class="fn" href="fn.extract_schema_from_read_request.html" title="fn servers::prom_store::extract_schema_from_read_request">extract_<wbr>schema_<wbr>from_<wbr>read_<wbr>request</a></dt><dd>Extract schema from remote read request. Returns the first schema found from any query’s matchers.</dd><dt><a class="fn" href="fn.is_database_selection_label.html" title="fn servers::prom_store::is_database_selection_label">is_<wbr>database_<wbr>selection_<wbr>label</a></dt><dd>Check if given label is a database selection label</dd><dt><a class="fn" href="fn.is_physical_table_selection_label.html" title="fn servers::prom_store::is_physical_table_selection_label">is_<wbr>physical_<wbr>table_<wbr>selection_<wbr>label</a></dt><dd>Check if given label is a physical table selection label</dd><dt><a class="fn" href="fn.is_remote_read_special_label.html" title="fn servers::prom_store::is_remote_read_special_label">is_<wbr>remote_<wbr>read_<wbr>special_<wbr>label</a></dt><dt><a class="fn" href="fn.is_remote_write_special_label.html" title="fn servers::prom_store::is_remote_write_special_label">is_<wbr>remote_<wbr>write_<wbr>special_<wbr>label</a></dt><dd>Check if given label is a special label for remote write</dd><dt><a class="fn" href="fn.lit_timestamp_millisecond.html" title="fn servers::prom_store::lit_timestamp_millisecond">lit_<wbr>timestamp_<wbr>millisecond</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.mock_timeseries.html" title="fn servers::prom_store::mock_timeseries">mock_<wbr>timeseries</a></dt><dd>Mock timeseries for test, it is both used in servers and frontend crate
|
||
So we present it here</dd><dt><a class="fn" href="fn.mock_timeseries_new_label.html" title="fn servers::prom_store::mock_timeseries_new_label">mock_<wbr>timeseries_<wbr>new_<wbr>label</a></dt><dd>Add new labels to the mock timeseries.</dd><dt><a class="fn" href="fn.mock_timeseries_special_labels.html" title="fn servers::prom_store::mock_timeseries_special_labels">mock_<wbr>timeseries_<wbr>special_<wbr>labels</a></dt><dd>Add new labels to the mock timeseries.</dd><dt><a class="fn" href="fn.new_label.html" title="fn servers::prom_store::new_label">new_<wbr>label</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.query_to_plan.html" title="fn servers::prom_store::query_to_plan">query_<wbr>to_<wbr>plan</a></dt><dd>Create a DataFrame from a remote Query</dd><dt><a class="fn" href="fn.recordbatch_to_timeseries.html" title="fn servers::prom_store::recordbatch_to_timeseries">recordbatch_<wbr>to_<wbr>timeseries</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.recordbatches_to_timeseries.html" title="fn servers::prom_store::recordbatches_to_timeseries">recordbatches_<wbr>to_<wbr>timeseries</a></dt><dt><a class="fn" href="fn.snappy_compress.html" title="fn servers::prom_store::snappy_compress">snappy_<wbr>compress</a></dt><dt><a class="fn" href="fn.snappy_decompress.html" title="fn servers::prom_store::snappy_decompress">snappy_<wbr>decompress</a></dt><dt><a class="fn" href="fn.table_name.html" title="fn servers::prom_store::table_name">table_<wbr>name</a></dt><dd>Get table name from remote query</dd><dt><a class="fn" href="fn.to_grpc_row_insert_requests.html" title="fn servers::prom_store::to_grpc_row_insert_requests">to_<wbr>grpc_<wbr>row_<wbr>insert_<wbr>requests</a></dt><dt><a class="fn" href="fn.zstd_decompress.html" title="fn servers::prom_store::zstd_decompress">zstd_<wbr>decompress</a></dt></dl></section></div></main></body></html> |