@lwmacct/260529-promclient 0.14.260628 → 0.15.260628

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -176,6 +176,129 @@ const time = serializeTime(new Date());
176
176
 
177
177
  Prometheus 的 sample value 是字符串。转换工具会在需要时解析为 number,并过滤 `NaN`。
178
178
 
179
+ ### Label Record Transform
180
+
181
+ 有些指标会把表格结构编码到 labels 中,例如用某些 labels 表示 `index`、`key`、`field`,再用 sample value 或 `value` label 表示字段值。可以用 `mapVectorToFieldRows` 先转成标准行,再按 key 或 index/key pivot 成对象表。
182
+
183
+ 示例一:sample value 作为字段值。
184
+
185
+ 假设查询返回这些 vector samples:
186
+
187
+ ```promql
188
+ demo_service_quota{tenant="acme", service="api", resource="cpu"} 4
189
+ demo_service_quota{tenant="acme", service="api", resource="memory_gb"} 16
190
+ demo_service_quota{tenant="acme", service="worker", resource="cpu"} 2
191
+ ```
192
+
193
+ 可以把它理解为:
194
+
195
+ | index | key | field | value |
196
+ | --- | --- | --- | --- |
197
+ | `acme` | `api` | `cpu` | `4` |
198
+ | `acme` | `api` | `memory_gb` | `16` |
199
+ | `acme` | `worker` | `cpu` | `2` |
200
+
201
+ ```ts
202
+ import {
203
+ mapFieldRowsByIndexKey,
204
+ mapVectorToFieldRows,
205
+ } from "@lwmacct/260529-promclient";
206
+
207
+ const response = await client.query("demo_service_quota");
208
+
209
+ const rows = mapVectorToFieldRows(response, {
210
+ indexLabels: ["tenant"],
211
+ keyLabels: ["service"],
212
+ fieldLabels: ["resource"],
213
+ valueSource: "sample",
214
+ });
215
+
216
+ const table = mapFieldRowsByIndexKey(rows);
217
+ // {
218
+ // acme: {
219
+ // api: {
220
+ // cpu: 4,
221
+ // memory_gb: 16
222
+ // },
223
+ // worker: {
224
+ // cpu: 2
225
+ // }
226
+ // }
227
+ // }
228
+ ```
229
+
230
+ 如果字段由多个 label 共同决定,可以把多个 label 组合成字段名:
231
+
232
+ ```ts
233
+ const rows = mapVectorToFieldRows(response, {
234
+ indexLabels: ["tenant"],
235
+ keyLabels: ["service"],
236
+ fieldLabels: ["method", "status"],
237
+ });
238
+ // method="GET", status="200" -> field: "GET.200"
239
+ ```
240
+
241
+ 示例二:`value` label 作为字段值。
242
+
243
+ 这类指标通常用 sample value `1` 表示“这条信息存在”,真正的字段值在 label 中:
244
+
245
+ ```promql
246
+ demo_asset_info{asset="srv-01", field="region", value="us-east"} 1
247
+ demo_asset_info{asset="srv-01", field="owner", value="platform"} 1
248
+ demo_asset_info{asset="srv-02", field="region", value="eu-west"} 1
249
+ ```
250
+
251
+ 可以把它理解为:
252
+
253
+ | key | field | value |
254
+ | --- | --- | --- |
255
+ | `srv-01` | `region` | `us-east` |
256
+ | `srv-01` | `owner` | `platform` |
257
+ | `srv-02` | `region` | `eu-west` |
258
+
259
+ ```ts
260
+ import {
261
+ mapFieldRowsByKey,
262
+ mapVectorToFieldRows,
263
+ } from "@lwmacct/260529-promclient";
264
+
265
+ const response = await client.query("demo_asset_info");
266
+
267
+ const rows = mapVectorToFieldRows(response, {
268
+ keyLabels: ["asset"],
269
+ fieldLabels: ["field"],
270
+ valueLabel: "value",
271
+ valueSource: "auto",
272
+ });
273
+
274
+ const table = mapFieldRowsByKey(rows);
275
+ // {
276
+ // "srv-01": {
277
+ // region: "us-east",
278
+ // owner: "platform"
279
+ // },
280
+ // "srv-02": {
281
+ // region: "eu-west"
282
+ // }
283
+ // }
284
+ ```
285
+
286
+ `valueSource` 支持:
287
+
288
+ | 值 | 说明 |
289
+ | --- | --- |
290
+ | `"auto"` | 优先读取 `valueLabel` 指定的 label;不存在时读取 sample value,默认值 |
291
+ | `"label"` | 只读取 `valueLabel` 指定的 label |
292
+ | `"sample"` | 只读取 Prometheus sample value |
293
+
294
+ 重复字段默认采用后出现的值。需要保留第一条、保留数组或发现重复时报错时,可以配置 pivot 函数:
295
+
296
+ ```ts
297
+ mapFieldRowsByKey(rows, { duplicate: "first" });
298
+ mapFieldRowsByKey(rows, { duplicate: "array" });
299
+ mapFieldRowsByKey(rows, { duplicate: "error" });
300
+ ```
301
+
179
302
  ### Instant Response
180
303
 
181
304
  ```ts
@@ -1,4 +1,5 @@
1
1
  export * from "./core";
2
2
  export * from "./instant";
3
3
  export * from "./range";
4
+ export * from "./records";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transform/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transform/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./core";
2
2
  export * from "./instant";
3
3
  export * from "./range";
4
+ export * from "./records";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transform/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transform/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { PromInstantData, PromLabelSet, PromVectorItem, PromSuccessResponse } from "../types";
2
+ export type PromFieldValue = string | number;
3
+ export type PromFieldRow = {
4
+ index?: string;
5
+ key: string;
6
+ field: string;
7
+ value: PromFieldValue;
8
+ labels: PromLabelSet;
9
+ sampleValue: string;
10
+ timestampMs: number;
11
+ };
12
+ export type PromFieldValueSource = "auto" | "label" | "sample";
13
+ export type MapVectorToFieldRowsOptions = {
14
+ indexLabels?: readonly string[];
15
+ keyLabels: readonly string[];
16
+ fieldLabels: readonly string[];
17
+ valueLabel?: string;
18
+ valueSource?: PromFieldValueSource;
19
+ labelSeparator?: string;
20
+ sampleParser?: (value: string, item: PromVectorItem) => PromFieldValue;
21
+ };
22
+ export type DuplicateFieldRowStrategy = "last" | "first" | "array" | "error";
23
+ export type MapFieldRowsOptions = {
24
+ duplicate?: DuplicateFieldRowStrategy;
25
+ };
26
+ export type PromFieldRecord = Record<string, PromFieldValue | PromFieldValue[]>;
27
+ export type PromFieldTable = Record<string, PromFieldRecord>;
28
+ export type PromIndexedFieldTable = Record<string, PromFieldTable>;
29
+ export declare const mapVectorItemToFieldRow: (item: PromVectorItem, options: MapVectorToFieldRowsOptions) => PromFieldRow | undefined;
30
+ export declare const mapVectorToFieldRows: (response: PromSuccessResponse<PromInstantData>, options: MapVectorToFieldRowsOptions) => PromFieldRow[];
31
+ export declare const mapFieldRowsByKey: (rows: readonly PromFieldRow[], options?: MapFieldRowsOptions) => PromFieldTable;
32
+ export declare const mapFieldRowsByIndexKey: (rows: readonly PromFieldRow[], options?: MapFieldRowsOptions) => PromIndexedFieldTable;
33
+ //# sourceMappingURL=records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/transform/records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,cAAc,EACd,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,YAAY,CAAC;IACrB,WAA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,eAAO,MAAM,sBAAsB,GACjC,MAAM,SAAS,YAAY,EAAE,EAC7B,UAAS,mBAAwB,KAChC,qBAgBF,CAAC"}
@@ -0,0 +1,113 @@
1
+ import { isVectorData, safeParseFloat, toMilliseconds } from "./core";
2
+ const defaultLabelSeparator = ".";
3
+ const defaultValueLabel = "value";
4
+ const joinLabelValues = (labels, labelNames, separator) => {
5
+ const values = [];
6
+ for (const labelName of labelNames) {
7
+ const value = labels[labelName];
8
+ if (value === undefined) {
9
+ return undefined;
10
+ }
11
+ values.push(value);
12
+ }
13
+ return values.join(separator);
14
+ };
15
+ const resolveFieldValue = (item, options) => {
16
+ const labelValue = item.metric[options.valueLabel];
17
+ if (options.valueSource === "label") {
18
+ return labelValue;
19
+ }
20
+ if (options.valueSource === "auto" && labelValue !== undefined) {
21
+ return labelValue;
22
+ }
23
+ return options.sampleParser(item.value[1], item);
24
+ };
25
+ export const mapVectorItemToFieldRow = (item, options) => {
26
+ const labelSeparator = options.labelSeparator ?? defaultLabelSeparator;
27
+ const indexLabels = options.indexLabels ?? [];
28
+ const valueOptions = {
29
+ sampleParser: options.sampleParser ??
30
+ ((value) => safeParseFloat(value)),
31
+ valueLabel: options.valueLabel ?? defaultValueLabel,
32
+ valueSource: options.valueSource ?? "auto",
33
+ };
34
+ const index = indexLabels.length > 0
35
+ ? joinLabelValues(item.metric, indexLabels, labelSeparator)
36
+ : undefined;
37
+ if (indexLabels.length > 0 && index === undefined) {
38
+ return undefined;
39
+ }
40
+ const key = joinLabelValues(item.metric, options.keyLabels, labelSeparator);
41
+ const field = joinLabelValues(item.metric, options.fieldLabels, labelSeparator);
42
+ const value = resolveFieldValue(item, valueOptions);
43
+ if (key === undefined || field === undefined || value === undefined) {
44
+ return undefined;
45
+ }
46
+ return {
47
+ index,
48
+ key,
49
+ field,
50
+ value,
51
+ labels: { ...item.metric },
52
+ sampleValue: item.value[1],
53
+ timestampMs: toMilliseconds(item.value[0]),
54
+ };
55
+ };
56
+ export const mapVectorToFieldRows = (response, options) => {
57
+ if (!isVectorData(response.data)) {
58
+ return [];
59
+ }
60
+ return response.data.result.reduce((rows, item) => {
61
+ const row = mapVectorItemToFieldRow(item, options);
62
+ if (row !== undefined) {
63
+ rows.push(row);
64
+ }
65
+ return rows;
66
+ }, []);
67
+ };
68
+ const setFieldValue = (record, field, value, duplicate) => {
69
+ const current = record[field];
70
+ if (current === undefined) {
71
+ record[field] = value;
72
+ return;
73
+ }
74
+ if (duplicate === "first") {
75
+ return;
76
+ }
77
+ if (duplicate === "last") {
78
+ record[field] = value;
79
+ return;
80
+ }
81
+ if (duplicate === "array") {
82
+ record[field] = Array.isArray(current)
83
+ ? [...current, value]
84
+ : [current, value];
85
+ return;
86
+ }
87
+ throw new Error(`Duplicate field row for field "${field}".`);
88
+ };
89
+ export const mapFieldRowsByKey = (rows, options = {}) => {
90
+ const duplicate = options.duplicate ?? "last";
91
+ return rows.reduce((table, row) => {
92
+ const record = table[row.key] ?? {};
93
+ setFieldValue(record, row.field, row.value, duplicate);
94
+ table[row.key] = record;
95
+ return table;
96
+ }, {});
97
+ };
98
+ export const mapFieldRowsByIndexKey = (rows, options = {}) => {
99
+ const duplicate = options.duplicate ?? "last";
100
+ return rows.reduce((table, row) => {
101
+ const index = row.index;
102
+ if (index === undefined) {
103
+ return table;
104
+ }
105
+ const records = table[index] ?? {};
106
+ const record = records[row.key] ?? {};
107
+ setFieldValue(record, row.field, row.value, duplicate);
108
+ records[row.key] = record;
109
+ table[index] = records;
110
+ return table;
111
+ }, {});
112
+ };
113
+ //# sourceMappingURL=records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.js","sourceRoot":"","sources":["../../src/transform/records.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAsCtE,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAClC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAElC,MAAM,eAAe,GAAG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"version": "0.15.260628",
4
4
  "private": false,
5
5
  "description": "Small Prometheus-compatible HTTP API client with PromQL helpers and response transforms.",
6
6
  "type": "module",