feat: absent function in PromQL (#263)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2025-08-04 01:27:00 -07:00
committed by GitHub
parent a6ce3ceb46
commit cc56a6cdac
5 changed files with 3935 additions and 20 deletions
@@ -89,3 +89,23 @@ message ScalarCalculate {
// Column name of field column
string field_column = 7;
}
message Absent {
// Start timestamp in millisecond
int64 start = 1;
// End timestamp in millisecond
int64 end = 2;
// Step in millisecond
int64 step = 3;
// Column name of time index column
string time_index_column = 4;
// Column name of value column
string value_column = 5;
// Fake labels as key-value pairs
repeated LabelPair fake_labels = 6;
}
message LabelPair {
string key = 1;
string value = 2;
}