@tsuga/cli 1.7.0 → 1.8.0
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 +4 -8
- package/dist/cli.js +21 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -390,24 +390,20 @@ tsuga grok parse --generate-skeleton > grok-test.json
|
|
|
390
390
|
tsuga grok parse -f grok-test.json
|
|
391
391
|
```
|
|
392
392
|
|
|
393
|
-
##
|
|
394
|
-
|
|
395
|
-
Commands under `tsuga experimental` are unstable and may change or be removed without notice. Use them only if you accept that risk.
|
|
396
|
-
|
|
397
|
-
### PromQL
|
|
393
|
+
## PromQL
|
|
398
394
|
|
|
399
395
|
Run a PromQL query against the metrics backend. Returns a timeseries shape matching `tsuga aggregation timeseries`.
|
|
400
396
|
|
|
401
397
|
```bash
|
|
402
|
-
tsuga
|
|
398
|
+
tsuga promql --generate-skeleton > query.json
|
|
403
399
|
# edit query.json
|
|
404
|
-
tsuga
|
|
400
|
+
tsuga promql -f query.json
|
|
405
401
|
```
|
|
406
402
|
|
|
407
403
|
Or inline:
|
|
408
404
|
|
|
409
405
|
```bash
|
|
410
|
-
tsuga
|
|
406
|
+
tsuga promql -d '{"query":"sum by (\"context.service.name\") (sum_over_time({\"traces.span.metrics.calls\", \"span.kind\"=\"SPAN_KIND_SERVER\"}[5m]))","timeRange":{"from":1704067200,"to":1704070800},"step":"30s"}'
|
|
411
407
|
```
|
|
412
408
|
|
|
413
409
|
`timeRange.from` / `timeRange.to` are Unix timestamps in seconds.
|