+ Please, upload file with JSON response content.
+ {"\n"}
+ The file must contain query information in JSON format.
+ {"\n"}
+ Graph will be displayed after file upload.
+ {"\n"}
+ Attach files by dragging & dropping, selecting or pasting them.
+
-);
-
-export default TraceUploadButtons;
diff --git a/app/vmui/packages/vmui/src/pages/TracePage/index.tsx b/app/vmui/packages/vmui/src/pages/TracePage/index.tsx
index acec6ebefb..3cb98baa00 100644
--- a/app/vmui/packages/vmui/src/pages/TracePage/index.tsx
+++ b/app/vmui/packages/vmui/src/pages/TracePage/index.tsx
@@ -10,7 +10,7 @@ import Modal from "../../components/Main/Modal/Modal";
import JsonForm from "./JsonForm/JsonForm";
import { ErrorTypes } from "../../types";
import useDropzone from "../../hooks/useDropzone";
-import TraceUploadButtons from "./TraceUploadButtons/TraceUploadButtons";
+import UploadJsonButtons from "../../components/UploadJsonButtons/UploadJsonButtons";
import useBoolean from "../../hooks/useBoolean";
const TracePage: FC = () => {
@@ -106,7 +106,7 @@ const TracePage: FC = () => {
{hasTraces && (
-
@@ -145,7 +145,7 @@ const TracePage: FC = () => {
{"\n"}
Attach files by dragging & dropping, selecting or pasting them.
-
diff --git a/app/vmui/packages/vmui/src/pages/TracePage/style.scss b/app/vmui/packages/vmui/src/pages/TracePage/style.scss
index a89c1879e4..db5c90d6e0 100644
--- a/app/vmui/packages/vmui/src/pages/TracePage/style.scss
+++ b/app/vmui/packages/vmui/src/pages/TracePage/style.scss
@@ -9,14 +9,6 @@
padding: $padding-medium 0;
}
- &-controls {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: $padding-global;
- align-items: center;
- justify-content: center;
- }
-
&-header {
display: grid;
grid-template-columns: 1fr auto;
@@ -46,6 +38,10 @@
align-items: center;
justify-content: stretch;
+ &_margin-bottom {
+ margin-bottom: $padding-global;
+ }
+
&__filename {
min-height: 20px;
}
diff --git a/app/vmui/packages/vmui/src/router/index.ts b/app/vmui/packages/vmui/src/router/index.ts
index 517c45aa0d..46856e8493 100644
--- a/app/vmui/packages/vmui/src/router/index.ts
+++ b/app/vmui/packages/vmui/src/router/index.ts
@@ -11,6 +11,7 @@ const router = {
relabel: "/relabeling",
logs: "/logs",
activeQueries: "/active-queries",
+ queryAnalyzer: "/query-analyzer",
icons: "/icons",
anomaly: "/anomaly",
query: "/query",
@@ -72,6 +73,10 @@ export const routerOptions: {[key: string]: RouterOptions} = {
title: "Trace analyzer",
header: {}
},
+ [router.queryAnalyzer]: {
+ title: "Query analyzer",
+ header: {}
+ },
[router.dashboards]: {
title: "Dashboards",
...routerOptionsDefault,
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 09fb460a94..226f782cd9 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -54,6 +54,9 @@ The sandbox cluster installation is running under the constant load generated by
* FEATURE: [vmctl](https://docs.victoriametrics.com/vmctl.html): add `-vm-native-src-insecure-skip-verify` and `-vm-native-dst-insecure-skip-verify` command-line flags for native protocol. It can be used for skipping TLS certificate verification when connecting to the source or destination addresses.
* FEATURE: [Alerting rules for VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/deployment/docker#alerts): add `job` label to `DiskRunsOutOfSpace` alerting rule, so it is easier to understand to which installation the triggered instance belongs.
* FEATURE: `vmstorage`: add tenant identifier for log messages regarding dropping excessive labels due to limits defined by `-maxLabelsPerTimeseries` or `-maxLabelValueLen` command-line flags. Previously, it was hard to understand to which tenant the dropped labels belong.
+* FEATURE: [vmui](https://docs.victoriametrics.com/#vmui): add the ability to export and import query reports:
+ - add a `Query Analyzer` page that allows you to build graphs from `JSON` data containing the results of executing a query request.
+ - add an `Export query` button to the graph that saves the result of executing the query in `JSON`. See [this pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5497).
* FEATURE: [vmui](https://docs.victoriametrics.com/#vmui): add `-vmui.defaultTimezone` flag to set a default timezone. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5375) and [these docs](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmui#timezone-configuration).
* FEATURE: [vmui](https://docs.victoriametrics.com/#vmui): include UTC in the timezone selection dropdown for standardized time referencing. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5375).
* FEATURE: add [VictoriaMetrics datasource](https://github.com/VictoriaMetrics/grafana-datasource) to docker compose environment. See [this pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5363).