@tsuga/cli 1.12.0 → 1.14.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 +3 -3
- package/dist/cli.js +21 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -413,15 +413,15 @@ tsuga grok parse -f grok-test.json
|
|
|
413
413
|
Run a PromQL query against the metrics backend. Returns a timeseries shape matching `tsuga aggregation timeseries`.
|
|
414
414
|
|
|
415
415
|
```bash
|
|
416
|
-
tsuga promql --generate-skeleton > query.json
|
|
416
|
+
tsuga promql query --generate-skeleton > query.json
|
|
417
417
|
# edit query.json
|
|
418
|
-
tsuga promql -f query.json
|
|
418
|
+
tsuga promql query -f query.json
|
|
419
419
|
```
|
|
420
420
|
|
|
421
421
|
Or inline:
|
|
422
422
|
|
|
423
423
|
```bash
|
|
424
|
-
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"}'
|
|
424
|
+
tsuga promql query -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"}'
|
|
425
425
|
```
|
|
426
426
|
|
|
427
427
|
`timeRange.from` / `timeRange.to` are Unix timestamps in seconds.
|