@intentius/chant-lexicon-grafana 0.96.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 +50 -0
- package/dist/build.d.ts +116 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/catalog.d.ts +26 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/codegen/docs-cli.d.ts +3 -0
- package/dist/codegen/docs-cli.d.ts.map +1 -0
- package/dist/codegen/docs.d.ts +8 -0
- package/dist/codegen/docs.d.ts.map +1 -0
- package/dist/codegen/generate-cli.d.ts +3 -0
- package/dist/codegen/generate-cli.d.ts.map +1 -0
- package/dist/codegen/generate.d.ts +21 -0
- package/dist/codegen/generate.d.ts.map +1 -0
- package/dist/codegen/package.d.ts +7 -0
- package/dist/codegen/package.d.ts.map +1 -0
- package/dist/codegen/schema-types.d.ts +41 -0
- package/dist/codegen/schema-types.d.ts.map +1 -0
- package/dist/composites/agent-dashboard.d.ts +70 -0
- package/dist/composites/agent-dashboard.d.ts.map +1 -0
- package/dist/composites/catalog.d.ts +3 -0
- package/dist/composites/catalog.d.ts.map +1 -0
- package/dist/composites/index.d.ts +12 -0
- package/dist/composites/index.d.ts.map +1 -0
- package/dist/composites/red-dashboard.d.ts +58 -0
- package/dist/composites/red-dashboard.d.ts.map +1 -0
- package/dist/composites/shared.d.ts +68 -0
- package/dist/composites/shared.d.ts.map +1 -0
- package/dist/composites/slo-dashboard.d.ts +62 -0
- package/dist/composites/slo-dashboard.d.ts.map +1 -0
- package/dist/dashboard.d.ts +84 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/datasource.d.ts +67 -0
- package/dist/datasource.d.ts.map +1 -0
- package/dist/detect.d.ts +20 -0
- package/dist/detect.d.ts.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/integrity.json +22 -0
- package/dist/lint/audit-catalog.d.ts +13 -0
- package/dist/lint/audit-catalog.d.ts.map +1 -0
- package/dist/lint/post-synth/graf101.d.ts +8 -0
- package/dist/lint/post-synth/graf101.d.ts.map +1 -0
- package/dist/lint/post-synth/graf102.d.ts +8 -0
- package/dist/lint/post-synth/graf102.d.ts.map +1 -0
- package/dist/lint/post-synth/graf103.d.ts +8 -0
- package/dist/lint/post-synth/graf103.d.ts.map +1 -0
- package/dist/lint/post-synth/graf104.d.ts +8 -0
- package/dist/lint/post-synth/graf104.d.ts.map +1 -0
- package/dist/lint/post-synth/graf105.d.ts +8 -0
- package/dist/lint/post-synth/graf105.d.ts.map +1 -0
- package/dist/lint/post-synth/graf106.d.ts +8 -0
- package/dist/lint/post-synth/graf106.d.ts.map +1 -0
- package/dist/lint/post-synth/graf107.d.ts +8 -0
- package/dist/lint/post-synth/graf107.d.ts.map +1 -0
- package/dist/lint/post-synth/grafana-helpers.d.ts +16 -0
- package/dist/lint/post-synth/grafana-helpers.d.ts.map +1 -0
- package/dist/lint/post-synth/index.d.ts +3 -0
- package/dist/lint/post-synth/index.d.ts.map +1 -0
- package/dist/lint/rules/grafana-ast.d.ts +21 -0
- package/dist/lint/rules/grafana-ast.d.ts.map +1 -0
- package/dist/lint/rules/index.d.ts +6 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/literal-secret.d.ts +12 -0
- package/dist/lint/rules/literal-secret.d.ts.map +1 -0
- package/dist/lint/rules/uid-syntax.d.ts +12 -0
- package/dist/lint/rules/uid-syntax.d.ts.map +1 -0
- package/dist/lsp/completions.d.ts +4 -0
- package/dist/lsp/completions.d.ts.map +1 -0
- package/dist/lsp/hover.d.ts +4 -0
- package/dist/lsp/hover.d.ts.map +1 -0
- package/dist/manifest.json +8 -0
- package/dist/meta.json +107 -0
- package/dist/okf/index.md +39 -0
- package/dist/okf/rules/GRAF001.md +16 -0
- package/dist/okf/rules/GRAF002.md +15 -0
- package/dist/okf/rules/GRAF101.md +15 -0
- package/dist/okf/rules/GRAF102.md +15 -0
- package/dist/okf/rules/GRAF103.md +11 -0
- package/dist/okf/rules/GRAF104.md +15 -0
- package/dist/okf/rules/GRAF105.md +11 -0
- package/dist/okf/rules/GRAF106.md +11 -0
- package/dist/okf/rules/GRAF107.md +11 -0
- package/dist/okf/types/ConstantVariable.md +9 -0
- package/dist/okf/types/CustomVariable.md +9 -0
- package/dist/okf/types/Dashboard.md +14 -0
- package/dist/okf/types/DashboardProvider.md +9 -0
- package/dist/okf/types/Datasource.md +16 -0
- package/dist/okf/types/DatasourceVariable.md +9 -0
- package/dist/okf/types/GaugePanel.md +9 -0
- package/dist/okf/types/HeatmapPanel.md +9 -0
- package/dist/okf/types/IntervalVariable.md +9 -0
- package/dist/okf/types/LogsPanel.md +9 -0
- package/dist/okf/types/LokiQuery.md +9 -0
- package/dist/okf/types/PromQuery.md +9 -0
- package/dist/okf/types/QueryVariable.md +9 -0
- package/dist/okf/types/Row.md +9 -0
- package/dist/okf/types/StatPanel.md +9 -0
- package/dist/okf/types/TablePanel.md +9 -0
- package/dist/okf/types/TempoQuery.md +9 -0
- package/dist/okf/types/TextPanel.md +9 -0
- package/dist/okf/types/TextboxVariable.md +9 -0
- package/dist/okf/types/TimeSeriesPanel.md +9 -0
- package/dist/okf/types/TracesPanel.md +9 -0
- package/dist/package-cli.d.ts +3 -0
- package/dist/package-cli.d.ts.map +1 -0
- package/dist/panels.d.ts +138 -0
- package/dist/panels.d.ts.map +1 -0
- package/dist/pin.d.ts +32 -0
- package/dist/pin.d.ts.map +1 -0
- package/dist/plugin.d.ts +12 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/query.d.ts +81 -0
- package/dist/query.d.ts.map +1 -0
- package/dist/rules/graf101.ts +17 -0
- package/dist/rules/graf102.ts +17 -0
- package/dist/rules/graf103.ts +17 -0
- package/dist/rules/graf104.ts +17 -0
- package/dist/rules/graf105.ts +17 -0
- package/dist/rules/graf106.ts +17 -0
- package/dist/rules/graf107.ts +17 -0
- package/dist/rules/grafana-ast.ts +70 -0
- package/dist/rules/grafana-helpers.ts +68 -0
- package/dist/rules/literal-secret.ts +48 -0
- package/dist/rules/uid-syntax.ts +56 -0
- package/dist/schema/dashboard.gen.d.ts +1231 -0
- package/dist/schema/dashboard.gen.d.ts.map +1 -0
- package/dist/schema/gauge.gen.d.ts +57 -0
- package/dist/schema/gauge.gen.d.ts.map +1 -0
- package/dist/schema/heatmap.gen.d.ts +295 -0
- package/dist/schema/heatmap.gen.d.ts.map +1 -0
- package/dist/schema/index.d.ts +18 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/logs.gen.d.ts +29 -0
- package/dist/schema/logs.gen.d.ts.map +1 -0
- package/dist/schema/loki.gen.d.ts +69 -0
- package/dist/schema/loki.gen.d.ts.map +1 -0
- package/dist/schema/prometheus.gen.d.ts +169 -0
- package/dist/schema/prometheus.gen.d.ts.map +1 -0
- package/dist/schema/stat.gen.d.ts +75 -0
- package/dist/schema/stat.gen.d.ts.map +1 -0
- package/dist/schema/table.gen.d.ts +295 -0
- package/dist/schema/table.gen.d.ts.map +1 -0
- package/dist/schema/tempo.gen.d.ts +136 -0
- package/dist/schema/tempo.gen.d.ts.map +1 -0
- package/dist/schema/text.gen.d.ts +16 -0
- package/dist/schema/text.gen.d.ts.map +1 -0
- package/dist/schema/timeseries.gen.d.ts +179 -0
- package/dist/schema/timeseries.gen.d.ts.map +1 -0
- package/dist/schema-validate.d.ts +20 -0
- package/dist/schema-validate.d.ts.map +1 -0
- package/dist/serializer.d.ts +22 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/skill-defs.d.ts +3 -0
- package/dist/skill-defs.d.ts.map +1 -0
- package/dist/skills/chant-grafana-provisioning.md +42 -0
- package/dist/skills/chant-grafana.md +93 -0
- package/dist/spec/fetch-cli.d.ts +3 -0
- package/dist/spec/fetch-cli.d.ts.map +1 -0
- package/dist/spec/schemas.d.ts +25 -0
- package/dist/spec/schemas.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/util.d.ts +17 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/validate-cli.d.ts +3 -0
- package/dist/validate-cli.d.ts.map +1 -0
- package/dist/validate-output.d.ts +42 -0
- package/dist/validate-output.d.ts.map +1 -0
- package/dist/validate.d.ts +12 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/variables.d.ts +100 -0
- package/dist/variables.d.ts.map +1 -0
- package/package.json +79 -0
- package/src/build.test.ts +210 -0
- package/src/build.ts +573 -0
- package/src/catalog.ts +116 -0
- package/src/codegen/docs-cli.ts +4 -0
- package/src/codegen/docs.ts +97 -0
- package/src/codegen/generate-cli.ts +8 -0
- package/src/codegen/generate.ts +83 -0
- package/src/codegen/package.ts +41 -0
- package/src/codegen/schema-types.ts +173 -0
- package/src/composites/agent-dashboard.ts +235 -0
- package/src/composites/catalog.test.ts +37 -0
- package/src/composites/catalog.ts +223 -0
- package/src/composites/composites.test.ts +314 -0
- package/src/composites/index.ts +12 -0
- package/src/composites/red-dashboard.ts +159 -0
- package/src/composites/shared.ts +94 -0
- package/src/composites/slo-dashboard.ts +177 -0
- package/src/dashboard.ts +123 -0
- package/src/datasource.ts +93 -0
- package/src/detect.ts +30 -0
- package/src/generated/lexicon-grafana.json +107 -0
- package/src/import.e2e.test.ts +147 -0
- package/src/import.test.ts +45 -0
- package/src/index.ts +178 -0
- package/src/lint/audit-catalog.ts +87 -0
- package/src/lint/post-synth/graf101.ts +17 -0
- package/src/lint/post-synth/graf102.ts +17 -0
- package/src/lint/post-synth/graf103.ts +17 -0
- package/src/lint/post-synth/graf104.ts +17 -0
- package/src/lint/post-synth/graf105.ts +17 -0
- package/src/lint/post-synth/graf106.ts +17 -0
- package/src/lint/post-synth/graf107.ts +17 -0
- package/src/lint/post-synth/grafana-helpers.ts +68 -0
- package/src/lint/post-synth/index.ts +19 -0
- package/src/lint/post-synth/post-synth.test.ts +231 -0
- package/src/lint/rules/grafana-ast.ts +70 -0
- package/src/lint/rules/index.ts +9 -0
- package/src/lint/rules/literal-secret.ts +48 -0
- package/src/lint/rules/rules.test.ts +70 -0
- package/src/lint/rules/uid-syntax.ts +56 -0
- package/src/lsp/completions.test.ts +31 -0
- package/src/lsp/completions.ts +15 -0
- package/src/lsp/hover.test.ts +25 -0
- package/src/lsp/hover.ts +28 -0
- package/src/package-cli.ts +17 -0
- package/src/panels.ts +275 -0
- package/src/pin.ts +68 -0
- package/src/plugin.test.ts +50 -0
- package/src/plugin.ts +116 -0
- package/src/query.ts +160 -0
- package/src/schema/dashboard.gen.ts +1289 -0
- package/src/schema/gauge.gen.ts +64 -0
- package/src/schema/heatmap.gen.ts +321 -0
- package/src/schema/index.ts +17 -0
- package/src/schema/logs.gen.ts +34 -0
- package/src/schema/loki.gen.ts +77 -0
- package/src/schema/prometheus.gen.ts +181 -0
- package/src/schema/stat.gen.ts +86 -0
- package/src/schema/table.gen.ts +334 -0
- package/src/schema/tempo.gen.ts +146 -0
- package/src/schema/text.gen.ts +22 -0
- package/src/schema/timeseries.gen.ts +208 -0
- package/src/schema-validate.ts +143 -0
- package/src/schema.test.ts +76 -0
- package/src/serializer.test.ts +170 -0
- package/src/serializer.ts +37 -0
- package/src/skill-defs.ts +31 -0
- package/src/skills/chant-grafana-provisioning.md +42 -0
- package/src/skills/chant-grafana.md +93 -0
- package/src/spec/fetch-cli.ts +27 -0
- package/src/spec/schemas/dashboard.jsonschema.json +1901 -0
- package/src/spec/schemas/gauge.jsonschema.json +114 -0
- package/src/spec/schemas/heatmap.jsonschema.json +480 -0
- package/src/spec/schemas/logs.jsonschema.json +94 -0
- package/src/spec/schemas/loki.jsonschema.json +118 -0
- package/src/spec/schemas/prometheus.jsonschema.json +276 -0
- package/src/spec/schemas/stat.jsonschema.json +163 -0
- package/src/spec/schemas/table.jsonschema.json +751 -0
- package/src/spec/schemas/tempo.jsonschema.json +225 -0
- package/src/spec/schemas/text.jsonschema.json +72 -0
- package/src/spec/schemas/timeseries.jsonschema.json +471 -0
- package/src/spec/schemas.ts +56 -0
- package/src/util.ts +43 -0
- package/src/validate-cli.ts +7 -0
- package/src/validate-output.ts +380 -0
- package/src/validate.ts +108 -0
- package/src/variables.ts +161 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Options": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"showThresholdLabels",
|
|
9
|
+
"showThresholdMarkers",
|
|
10
|
+
"sizing",
|
|
11
|
+
"minVizWidth",
|
|
12
|
+
"reduceOptions",
|
|
13
|
+
"minVizHeight",
|
|
14
|
+
"orientation"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"showThresholdLabels": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false
|
|
20
|
+
},
|
|
21
|
+
"showThresholdMarkers": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": true
|
|
24
|
+
},
|
|
25
|
+
"sizing": {
|
|
26
|
+
"$ref": "#/definitions/BarGaugeSizing",
|
|
27
|
+
"default": "auto"
|
|
28
|
+
},
|
|
29
|
+
"minVizWidth": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"default": 75
|
|
32
|
+
},
|
|
33
|
+
"reduceOptions": {
|
|
34
|
+
"$ref": "#/definitions/ReduceDataOptions"
|
|
35
|
+
},
|
|
36
|
+
"text": {
|
|
37
|
+
"$ref": "#/definitions/VizTextDisplayOptions"
|
|
38
|
+
},
|
|
39
|
+
"minVizHeight": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"default": 75
|
|
42
|
+
},
|
|
43
|
+
"orientation": {
|
|
44
|
+
"$ref": "#/definitions/VizOrientation"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"BarGaugeSizing": {
|
|
49
|
+
"enum": [
|
|
50
|
+
"auto",
|
|
51
|
+
"manual"
|
|
52
|
+
],
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Allows for the bar gauge size to be set explicitly"
|
|
55
|
+
},
|
|
56
|
+
"ReduceDataOptions": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"required": [
|
|
60
|
+
"calcs"
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"values": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "If true show each row value"
|
|
66
|
+
},
|
|
67
|
+
"limit": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"description": "if showing all values limit"
|
|
70
|
+
},
|
|
71
|
+
"calcs": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"description": "When !values, pick one value for the whole field"
|
|
77
|
+
},
|
|
78
|
+
"fields": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Which fields to show. By default this is only numeric fields"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"description": "TODO docs"
|
|
84
|
+
},
|
|
85
|
+
"VizTextDisplayOptions": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"properties": {
|
|
89
|
+
"titleSize": {
|
|
90
|
+
"type": "number",
|
|
91
|
+
"description": "Explicit title text size"
|
|
92
|
+
},
|
|
93
|
+
"valueSize": {
|
|
94
|
+
"type": "number",
|
|
95
|
+
"description": "Explicit value text size"
|
|
96
|
+
},
|
|
97
|
+
"percentSize": {
|
|
98
|
+
"type": "number",
|
|
99
|
+
"description": "Explicit percent text size"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"description": "TODO docs"
|
|
103
|
+
},
|
|
104
|
+
"VizOrientation": {
|
|
105
|
+
"enum": [
|
|
106
|
+
"auto",
|
|
107
|
+
"vertical",
|
|
108
|
+
"horizontal"
|
|
109
|
+
],
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "TODO docs"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"HeatmapColorMode": {
|
|
5
|
+
"enum": [
|
|
6
|
+
"opacity",
|
|
7
|
+
"scheme"
|
|
8
|
+
],
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Controls the color mode of the heatmap"
|
|
11
|
+
},
|
|
12
|
+
"HeatmapColorScale": {
|
|
13
|
+
"enum": [
|
|
14
|
+
"linear",
|
|
15
|
+
"exponential"
|
|
16
|
+
],
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Controls the color scale of the heatmap"
|
|
19
|
+
},
|
|
20
|
+
"HeatmapSelectionMode": {
|
|
21
|
+
"enum": [
|
|
22
|
+
"x",
|
|
23
|
+
"y",
|
|
24
|
+
"xy"
|
|
25
|
+
],
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Controls which axis to allow selection on"
|
|
28
|
+
},
|
|
29
|
+
"HeatmapColorOptions": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": [
|
|
33
|
+
"scheme",
|
|
34
|
+
"fill",
|
|
35
|
+
"exponent",
|
|
36
|
+
"steps",
|
|
37
|
+
"reverse"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"mode": {
|
|
41
|
+
"$ref": "#/definitions/HeatmapColorMode",
|
|
42
|
+
"description": "Sets the color mode"
|
|
43
|
+
},
|
|
44
|
+
"scheme": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Controls the color scheme used"
|
|
47
|
+
},
|
|
48
|
+
"fill": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Controls the color fill when in opacity mode"
|
|
51
|
+
},
|
|
52
|
+
"scale": {
|
|
53
|
+
"$ref": "#/definitions/HeatmapColorScale",
|
|
54
|
+
"description": "Controls the color scale"
|
|
55
|
+
},
|
|
56
|
+
"exponent": {
|
|
57
|
+
"type": "number",
|
|
58
|
+
"description": "Controls the exponent when scale is set to exponential"
|
|
59
|
+
},
|
|
60
|
+
"steps": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"minimum": 2,
|
|
63
|
+
"maximum": 128,
|
|
64
|
+
"description": "Controls the number of color steps"
|
|
65
|
+
},
|
|
66
|
+
"reverse": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"description": "Reverses the color scheme"
|
|
69
|
+
},
|
|
70
|
+
"min": {
|
|
71
|
+
"type": "number",
|
|
72
|
+
"description": "Sets the minimum value for the color scale"
|
|
73
|
+
},
|
|
74
|
+
"max": {
|
|
75
|
+
"type": "number",
|
|
76
|
+
"description": "Sets the maximum value for the color scale"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"description": "Controls various color options"
|
|
80
|
+
},
|
|
81
|
+
"YAxisConfig": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"properties": {
|
|
85
|
+
"unit": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Sets the yAxis unit"
|
|
88
|
+
},
|
|
89
|
+
"reverse": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "Reverses the yAxis"
|
|
92
|
+
},
|
|
93
|
+
"decimals": {
|
|
94
|
+
"type": "number",
|
|
95
|
+
"description": "Controls the number of decimals for yAxis values"
|
|
96
|
+
},
|
|
97
|
+
"min": {
|
|
98
|
+
"type": "number",
|
|
99
|
+
"description": "Sets the minimum value for the yAxis"
|
|
100
|
+
},
|
|
101
|
+
"axisPlacement": {
|
|
102
|
+
"$ref": "#/definitions/AxisPlacement"
|
|
103
|
+
},
|
|
104
|
+
"axisColorMode": {
|
|
105
|
+
"$ref": "#/definitions/AxisColorMode"
|
|
106
|
+
},
|
|
107
|
+
"axisLabel": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"axisWidth": {
|
|
111
|
+
"type": "number"
|
|
112
|
+
},
|
|
113
|
+
"axisSoftMin": {
|
|
114
|
+
"type": "number"
|
|
115
|
+
},
|
|
116
|
+
"axisSoftMax": {
|
|
117
|
+
"type": "number"
|
|
118
|
+
},
|
|
119
|
+
"axisGridShow": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"scaleDistribution": {
|
|
123
|
+
"$ref": "#/definitions/ScaleDistributionConfig"
|
|
124
|
+
},
|
|
125
|
+
"axisCenteredZero": {
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"max": {
|
|
129
|
+
"type": "number",
|
|
130
|
+
"description": "Sets the maximum value for the yAxis"
|
|
131
|
+
},
|
|
132
|
+
"axisBorderShow": {
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"description": "Configuration options for the yAxis"
|
|
137
|
+
},
|
|
138
|
+
"CellValues": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"properties": {
|
|
142
|
+
"unit": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "Controls the cell value unit"
|
|
145
|
+
},
|
|
146
|
+
"decimals": {
|
|
147
|
+
"type": "number",
|
|
148
|
+
"description": "Controls the number of decimals for cell values"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"description": "Controls cell value options"
|
|
152
|
+
},
|
|
153
|
+
"FilterValueRange": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"properties": {
|
|
157
|
+
"le": {
|
|
158
|
+
"type": "number",
|
|
159
|
+
"description": "Sets the filter range to values less than or equal to the given value"
|
|
160
|
+
},
|
|
161
|
+
"ge": {
|
|
162
|
+
"type": "number",
|
|
163
|
+
"description": "Sets the filter range to values greater than or equal to the given value"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"description": "Controls the value filter range"
|
|
167
|
+
},
|
|
168
|
+
"HeatmapTooltip": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"required": [
|
|
172
|
+
"mode"
|
|
173
|
+
],
|
|
174
|
+
"properties": {
|
|
175
|
+
"mode": {
|
|
176
|
+
"$ref": "#/definitions/TooltipDisplayMode",
|
|
177
|
+
"description": "Controls how the tooltip is shown"
|
|
178
|
+
},
|
|
179
|
+
"maxHeight": {
|
|
180
|
+
"type": "number"
|
|
181
|
+
},
|
|
182
|
+
"maxWidth": {
|
|
183
|
+
"type": "number"
|
|
184
|
+
},
|
|
185
|
+
"yHistogram": {
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"description": "Controls if the tooltip shows a histogram of the y-axis values"
|
|
188
|
+
},
|
|
189
|
+
"showColorScale": {
|
|
190
|
+
"type": "boolean",
|
|
191
|
+
"description": "Controls if the tooltip shows a color scale in header"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"description": "Controls tooltip options"
|
|
195
|
+
},
|
|
196
|
+
"HeatmapLegend": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"additionalProperties": false,
|
|
199
|
+
"required": [
|
|
200
|
+
"show"
|
|
201
|
+
],
|
|
202
|
+
"properties": {
|
|
203
|
+
"show": {
|
|
204
|
+
"type": "boolean",
|
|
205
|
+
"description": "Controls if the legend is shown"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"description": "Controls legend options"
|
|
209
|
+
},
|
|
210
|
+
"ExemplarConfig": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"required": [
|
|
214
|
+
"color"
|
|
215
|
+
],
|
|
216
|
+
"properties": {
|
|
217
|
+
"color": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Sets the color of the exemplar markers"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"description": "Controls exemplar options"
|
|
223
|
+
},
|
|
224
|
+
"RowsHeatmapOptions": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"additionalProperties": false,
|
|
227
|
+
"properties": {
|
|
228
|
+
"value": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"description": "Sets the name of the cell when not calculating from data"
|
|
231
|
+
},
|
|
232
|
+
"layout": {
|
|
233
|
+
"$ref": "#/definitions/HeatmapCellLayout",
|
|
234
|
+
"description": "Controls tick alignment when not calculating from data"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"description": "Controls frame rows options"
|
|
238
|
+
},
|
|
239
|
+
"Options": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": [
|
|
243
|
+
"color",
|
|
244
|
+
"showValue",
|
|
245
|
+
"yAxis",
|
|
246
|
+
"legend",
|
|
247
|
+
"tooltip",
|
|
248
|
+
"exemplars"
|
|
249
|
+
],
|
|
250
|
+
"properties": {
|
|
251
|
+
"calculate": {
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"description": "Controls if the heatmap should be calculated from data",
|
|
254
|
+
"default": false
|
|
255
|
+
},
|
|
256
|
+
"calculation": {
|
|
257
|
+
"$ref": "#/definitions/HeatmapCalculationOptions",
|
|
258
|
+
"description": "Calculation options for the heatmap"
|
|
259
|
+
},
|
|
260
|
+
"color": {
|
|
261
|
+
"$ref": "#/definitions/HeatmapColorOptions",
|
|
262
|
+
"description": "Controls the color options",
|
|
263
|
+
"default": {
|
|
264
|
+
"exponent": 0.5,
|
|
265
|
+
"fill": "dark-orange",
|
|
266
|
+
"reverse": false,
|
|
267
|
+
"scheme": "Oranges",
|
|
268
|
+
"steps": 64
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"filterValues": {
|
|
272
|
+
"$ref": "#/definitions/FilterValueRange",
|
|
273
|
+
"description": "Filters values between a given range",
|
|
274
|
+
"default": {
|
|
275
|
+
"le": 1e-9
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"rowsFrame": {
|
|
279
|
+
"$ref": "#/definitions/RowsHeatmapOptions",
|
|
280
|
+
"description": "Controls tick alignment and value name when not calculating from data"
|
|
281
|
+
},
|
|
282
|
+
"showValue": {
|
|
283
|
+
"$ref": "#/definitions/VisibilityMode",
|
|
284
|
+
"description": "| *{\n\tlayout: ui.HeatmapCellLayout \u0026 \"auto\" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls the display of the value in the cell",
|
|
285
|
+
"default": "auto"
|
|
286
|
+
},
|
|
287
|
+
"cellGap": {
|
|
288
|
+
"type": "integer",
|
|
289
|
+
"minimum": 0,
|
|
290
|
+
"maximum": 25,
|
|
291
|
+
"description": "Controls gap between cells",
|
|
292
|
+
"default": 1
|
|
293
|
+
},
|
|
294
|
+
"cellRadius": {
|
|
295
|
+
"type": "number",
|
|
296
|
+
"description": "Controls cell radius"
|
|
297
|
+
},
|
|
298
|
+
"cellValues": {
|
|
299
|
+
"$ref": "#/definitions/CellValues",
|
|
300
|
+
"description": "Controls cell value unit"
|
|
301
|
+
},
|
|
302
|
+
"yAxis": {
|
|
303
|
+
"$ref": "#/definitions/YAxisConfig",
|
|
304
|
+
"description": "Controls yAxis placement"
|
|
305
|
+
},
|
|
306
|
+
"legend": {
|
|
307
|
+
"$ref": "#/definitions/HeatmapLegend",
|
|
308
|
+
"description": "| *{\n\taxisPlacement: ui.AxisPlacement \u0026 \"left\" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls legend options",
|
|
309
|
+
"default": {
|
|
310
|
+
"show": true
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"tooltip": {
|
|
314
|
+
"$ref": "#/definitions/HeatmapTooltip",
|
|
315
|
+
"description": "Controls tooltip options"
|
|
316
|
+
},
|
|
317
|
+
"exemplars": {
|
|
318
|
+
"$ref": "#/definitions/ExemplarConfig",
|
|
319
|
+
"description": "Controls exemplar options",
|
|
320
|
+
"default": {
|
|
321
|
+
"color": "rgba(255,0,255,0.7)"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"selectionMode": {
|
|
325
|
+
"$ref": "#/definitions/HeatmapSelectionMode",
|
|
326
|
+
"description": "Controls which axis to allow selection on",
|
|
327
|
+
"default": "x"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"FieldConfig": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"additionalProperties": false,
|
|
334
|
+
"properties": {
|
|
335
|
+
"scaleDistribution": {
|
|
336
|
+
"$ref": "#/definitions/ScaleDistributionConfig"
|
|
337
|
+
},
|
|
338
|
+
"hideFrom": {
|
|
339
|
+
"$ref": "#/definitions/HideSeriesConfig"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"AxisPlacement": {
|
|
344
|
+
"enum": [
|
|
345
|
+
"auto",
|
|
346
|
+
"top",
|
|
347
|
+
"right",
|
|
348
|
+
"bottom",
|
|
349
|
+
"left",
|
|
350
|
+
"hidden"
|
|
351
|
+
],
|
|
352
|
+
"type": "string",
|
|
353
|
+
"description": "TODO docs"
|
|
354
|
+
},
|
|
355
|
+
"AxisColorMode": {
|
|
356
|
+
"enum": [
|
|
357
|
+
"text",
|
|
358
|
+
"series"
|
|
359
|
+
],
|
|
360
|
+
"type": "string",
|
|
361
|
+
"description": "TODO docs"
|
|
362
|
+
},
|
|
363
|
+
"ScaleDistributionConfig": {
|
|
364
|
+
"type": "object",
|
|
365
|
+
"additionalProperties": false,
|
|
366
|
+
"required": [
|
|
367
|
+
"type"
|
|
368
|
+
],
|
|
369
|
+
"properties": {
|
|
370
|
+
"type": {
|
|
371
|
+
"$ref": "#/definitions/ScaleDistribution"
|
|
372
|
+
},
|
|
373
|
+
"log": {
|
|
374
|
+
"type": "number"
|
|
375
|
+
},
|
|
376
|
+
"linearThreshold": {
|
|
377
|
+
"type": "number"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"description": "TODO docs"
|
|
381
|
+
},
|
|
382
|
+
"TooltipDisplayMode": {
|
|
383
|
+
"enum": [
|
|
384
|
+
"single",
|
|
385
|
+
"multi",
|
|
386
|
+
"none"
|
|
387
|
+
],
|
|
388
|
+
"type": "string",
|
|
389
|
+
"description": "TODO docs"
|
|
390
|
+
},
|
|
391
|
+
"HeatmapCellLayout": {
|
|
392
|
+
"enum": [
|
|
393
|
+
"le",
|
|
394
|
+
"ge",
|
|
395
|
+
"unknown",
|
|
396
|
+
"auto"
|
|
397
|
+
],
|
|
398
|
+
"type": "string"
|
|
399
|
+
},
|
|
400
|
+
"HeatmapCalculationOptions": {
|
|
401
|
+
"type": "object",
|
|
402
|
+
"additionalProperties": false,
|
|
403
|
+
"properties": {
|
|
404
|
+
"xBuckets": {
|
|
405
|
+
"$ref": "#/definitions/HeatmapCalculationBucketConfig",
|
|
406
|
+
"description": "The number of buckets to use for the xAxis in the heatmap"
|
|
407
|
+
},
|
|
408
|
+
"yBuckets": {
|
|
409
|
+
"$ref": "#/definitions/HeatmapCalculationBucketConfig",
|
|
410
|
+
"description": "The number of buckets to use for the yAxis in the heatmap"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"VisibilityMode": {
|
|
415
|
+
"enum": [
|
|
416
|
+
"auto",
|
|
417
|
+
"never",
|
|
418
|
+
"always"
|
|
419
|
+
],
|
|
420
|
+
"type": "string",
|
|
421
|
+
"description": "TODO docs"
|
|
422
|
+
},
|
|
423
|
+
"HideSeriesConfig": {
|
|
424
|
+
"type": "object",
|
|
425
|
+
"additionalProperties": false,
|
|
426
|
+
"required": [
|
|
427
|
+
"tooltip",
|
|
428
|
+
"legend",
|
|
429
|
+
"viz"
|
|
430
|
+
],
|
|
431
|
+
"properties": {
|
|
432
|
+
"tooltip": {
|
|
433
|
+
"type": "boolean"
|
|
434
|
+
},
|
|
435
|
+
"legend": {
|
|
436
|
+
"type": "boolean"
|
|
437
|
+
},
|
|
438
|
+
"viz": {
|
|
439
|
+
"type": "boolean"
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"description": "TODO docs"
|
|
443
|
+
},
|
|
444
|
+
"ScaleDistribution": {
|
|
445
|
+
"enum": [
|
|
446
|
+
"linear",
|
|
447
|
+
"log",
|
|
448
|
+
"ordinal",
|
|
449
|
+
"symlog"
|
|
450
|
+
],
|
|
451
|
+
"type": "string",
|
|
452
|
+
"description": "TODO docs"
|
|
453
|
+
},
|
|
454
|
+
"HeatmapCalculationBucketConfig": {
|
|
455
|
+
"type": "object",
|
|
456
|
+
"additionalProperties": false,
|
|
457
|
+
"properties": {
|
|
458
|
+
"mode": {
|
|
459
|
+
"$ref": "#/definitions/HeatmapCalculationMode",
|
|
460
|
+
"description": "Sets the bucket calculation mode"
|
|
461
|
+
},
|
|
462
|
+
"value": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"description": "The number of buckets to use for the axis in the heatmap"
|
|
465
|
+
},
|
|
466
|
+
"scale": {
|
|
467
|
+
"$ref": "#/definitions/ScaleDistributionConfig",
|
|
468
|
+
"description": "Controls the scale of the buckets"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"HeatmapCalculationMode": {
|
|
473
|
+
"enum": [
|
|
474
|
+
"size",
|
|
475
|
+
"count"
|
|
476
|
+
],
|
|
477
|
+
"type": "string"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Options": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"showLabels",
|
|
9
|
+
"showCommonLabels",
|
|
10
|
+
"showTime",
|
|
11
|
+
"showLogContextToggle",
|
|
12
|
+
"wrapLogMessage",
|
|
13
|
+
"prettifyLogMessage",
|
|
14
|
+
"enableLogDetails",
|
|
15
|
+
"sortOrder",
|
|
16
|
+
"dedupStrategy"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"showLabels": {
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
},
|
|
22
|
+
"showCommonLabels": {
|
|
23
|
+
"type": "boolean"
|
|
24
|
+
},
|
|
25
|
+
"showTime": {
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
},
|
|
28
|
+
"showLogContextToggle": {
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"wrapLogMessage": {
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
34
|
+
"prettifyLogMessage": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
37
|
+
"enableLogDetails": {
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
"sortOrder": {
|
|
41
|
+
"$ref": "#/definitions/LogsSortOrder"
|
|
42
|
+
},
|
|
43
|
+
"dedupStrategy": {
|
|
44
|
+
"$ref": "#/definitions/LogsDedupStrategy"
|
|
45
|
+
},
|
|
46
|
+
"enableInfiniteScrolling": {
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"showControls": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Display controls to jump to the last or first log line, and filters by log level."
|
|
52
|
+
},
|
|
53
|
+
"showFieldSelector": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Show a component to manage the displayed fields from the logs."
|
|
56
|
+
},
|
|
57
|
+
"syntaxHighlighting": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Use a predefined coloring scheme to highlight relevant parts of the log lines."
|
|
60
|
+
},
|
|
61
|
+
"fontSize": {
|
|
62
|
+
"enum": [
|
|
63
|
+
"default",
|
|
64
|
+
"small"
|
|
65
|
+
],
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"detailsMode": {
|
|
69
|
+
"enum": [
|
|
70
|
+
"inline",
|
|
71
|
+
"sidebar"
|
|
72
|
+
],
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"LogsSortOrder": {
|
|
78
|
+
"enum": [
|
|
79
|
+
"Descending",
|
|
80
|
+
"Ascending"
|
|
81
|
+
],
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"LogsDedupStrategy": {
|
|
85
|
+
"enum": [
|
|
86
|
+
"none",
|
|
87
|
+
"exact",
|
|
88
|
+
"numbers",
|
|
89
|
+
"signature"
|
|
90
|
+
],
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|