@intentius/chant-lexicon-grafana 0.98.0 → 0.100.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 +24 -8
- package/dist/actions/grafana.d.ts +24 -0
- package/dist/actions/grafana.d.ts.map +1 -0
- package/dist/actions/index.d.ts +2 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/alerting-build.d.ts +128 -0
- package/dist/alerting-build.d.ts.map +1 -0
- package/dist/alerting.d.ts +273 -0
- package/dist/alerting.d.ts.map +1 -0
- package/dist/annotations.d.ts +61 -0
- package/dist/annotations.d.ts.map +1 -0
- package/dist/api/apply.d.ts +160 -0
- package/dist/api/apply.d.ts.map +1 -0
- package/dist/api/bind.d.ts +32 -0
- package/dist/api/bind.d.ts.map +1 -0
- package/dist/api/client.d.ts +76 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/converge.d.ts +33 -0
- package/dist/api/converge.d.ts.map +1 -0
- package/dist/api/dashboards.d.ts +102 -0
- package/dist/api/dashboards.d.ts.map +1 -0
- package/dist/api/datasources.d.ts +26 -0
- package/dist/api/datasources.d.ts.map +1 -0
- package/dist/api/fake-grafana-writes.d.ts +41 -0
- package/dist/api/fake-grafana-writes.d.ts.map +1 -0
- package/dist/api/fake-grafana.d.ts +63 -0
- package/dist/api/fake-grafana.d.ts.map +1 -0
- package/dist/api/folders.d.ts +146 -0
- package/dist/api/folders.d.ts.map +1 -0
- package/dist/api/library-panels.d.ts +52 -0
- package/dist/api/library-panels.d.ts.map +1 -0
- package/dist/build.d.ts +55 -6
- package/dist/build.d.ts.map +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.d.ts.map +1 -1
- package/dist/codegen/docs.d.ts.map +1 -1
- package/dist/codegen/generate.d.ts +7 -1
- package/dist/codegen/generate.d.ts.map +1 -1
- package/dist/codegen/schema-types.d.ts +3 -3
- package/dist/codegen/schema-types.d.ts.map +1 -1
- package/dist/composites/agent-dashboard.d.ts.map +1 -1
- package/dist/composites/catalog.d.ts.map +1 -1
- package/dist/composites/index.d.ts +4 -2
- package/dist/composites/index.d.ts.map +1 -1
- package/dist/composites/red-dashboard.d.ts +21 -2
- package/dist/composites/red-dashboard.d.ts.map +1 -1
- package/dist/composites/shared.d.ts +11 -3
- package/dist/composites/shared.d.ts.map +1 -1
- package/dist/composites/slo-alert-rules.d.ts +92 -0
- package/dist/composites/slo-alert-rules.d.ts.map +1 -0
- package/dist/config.d.ts +111 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/contact-point-secrets.d.ts +17 -0
- package/dist/contact-point-secrets.d.ts.map +1 -0
- package/dist/dashboard.d.ts +51 -9
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/datasource-refs.d.ts +99 -0
- package/dist/datasource-refs.d.ts.map +1 -0
- package/dist/datasource-settings.d.ts +834 -0
- package/dist/datasource-settings.d.ts.map +1 -0
- package/dist/datasource.d.ts +82 -11
- package/dist/datasource.d.ts.map +1 -1
- package/dist/deep-observe-hooks.d.ts +64 -0
- package/dist/deep-observe-hooks.d.ts.map +1 -0
- package/dist/deep-observe.d.ts +47 -0
- package/dist/deep-observe.d.ts.map +1 -0
- package/dist/describe-resources.d.ts +50 -0
- package/dist/describe-resources.d.ts.map +1 -0
- package/dist/detect.d.ts +32 -3
- package/dist/detect.d.ts.map +1 -1
- package/dist/export-resources.d.ts +38 -0
- package/dist/export-resources.d.ts.map +1 -0
- package/dist/folder.d.ts +68 -0
- package/dist/folder.d.ts.map +1 -0
- package/dist/import/alerting.d.ts +40 -0
- package/dist/import/alerting.d.ts.map +1 -0
- package/dist/import/edits.d.ts +47 -0
- package/dist/import/edits.d.ts.map +1 -0
- package/dist/import/embedded.d.ts +14 -0
- package/dist/import/embedded.d.ts.map +1 -0
- package/dist/import/generator.d.ts +60 -0
- package/dist/import/generator.d.ts.map +1 -0
- package/dist/import/live-export.d.ts +108 -0
- package/dist/import/live-export.d.ts.map +1 -0
- package/dist/import/mappings.d.ts +89 -0
- package/dist/import/mappings.d.ts.map +1 -0
- package/dist/import/model.d.ts +105 -0
- package/dist/import/model.d.ts.map +1 -0
- package/dist/import/normalize-alerting.d.ts +26 -0
- package/dist/import/normalize-alerting.d.ts.map +1 -0
- package/dist/import/normalize.d.ts +74 -0
- package/dist/import/normalize.d.ts.map +1 -0
- package/dist/import/parser.d.ts +125 -0
- package/dist/import/parser.d.ts.map +1 -0
- package/dist/import/report.d.ts +26 -0
- package/dist/import/report.d.ts.map +1 -0
- package/dist/import/testdata/fixtures.d.ts +41 -0
- package/dist/import/testdata/fixtures.d.ts.map +1 -0
- package/dist/import/v2.d.ts +73 -0
- package/dist/import/v2.d.ts.map +1 -0
- package/dist/index.d.ts +31 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/init-templates.d.ts +27 -0
- package/dist/init-templates.d.ts.map +1 -0
- package/dist/integrity.json +22 -12
- package/dist/k8s.d.ts +107 -0
- package/dist/k8s.d.ts.map +1 -0
- package/dist/lint/audit-catalog.d.ts +2 -1
- package/dist/lint/audit-catalog.d.ts.map +1 -1
- package/dist/lint/post-synth/graf101.d.ts +2 -2
- package/dist/lint/post-synth/graf102.d.ts +1 -1
- package/dist/lint/post-synth/graf104.d.ts +2 -2
- package/dist/lint/post-synth/graf106.d.ts +2 -2
- package/dist/lint/post-synth/graf107.d.ts +1 -1
- package/dist/lint/post-synth/graf108.d.ts +8 -0
- package/dist/lint/post-synth/graf108.d.ts.map +1 -0
- package/dist/lint/post-synth/graf109.d.ts +8 -0
- package/dist/lint/post-synth/graf109.d.ts.map +1 -0
- package/dist/lint/post-synth/graf110.d.ts +8 -0
- package/dist/lint/post-synth/graf110.d.ts.map +1 -0
- package/dist/lint/post-synth/graf111.d.ts +8 -0
- package/dist/lint/post-synth/graf111.d.ts.map +1 -0
- package/dist/lint/post-synth/graf112.d.ts +8 -0
- package/dist/lint/post-synth/graf112.d.ts.map +1 -0
- package/dist/lint/post-synth/graf113.d.ts +8 -0
- package/dist/lint/post-synth/graf113.d.ts.map +1 -0
- package/dist/lint/post-synth/graf114.d.ts +8 -0
- package/dist/lint/post-synth/graf114.d.ts.map +1 -0
- package/dist/lint/post-synth/graf115.d.ts +8 -0
- package/dist/lint/post-synth/graf115.d.ts.map +1 -0
- package/dist/lint/post-synth/grafana-helpers.d.ts +7 -5
- package/dist/lint/post-synth/grafana-helpers.d.ts.map +1 -1
- package/dist/lint/post-synth/index.d.ts.map +1 -1
- package/dist/lint/rules/literal-secret.d.ts +7 -3
- package/dist/lint/rules/literal-secret.d.ts.map +1 -1
- package/dist/lsp/hover.d.ts.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/members.d.ts +27 -0
- package/dist/members.d.ts.map +1 -0
- package/dist/meta.json +205 -0
- package/dist/okf/index.md +53 -4
- package/dist/okf/rules/GRAF002.md +3 -2
- package/dist/okf/rules/GRAF101.md +3 -2
- package/dist/okf/rules/GRAF102.md +1 -0
- package/dist/okf/rules/GRAF104.md +2 -2
- package/dist/okf/rules/GRAF106.md +2 -2
- package/dist/okf/rules/GRAF108.md +11 -0
- package/dist/okf/rules/GRAF109.md +15 -0
- package/dist/okf/rules/GRAF110.md +11 -0
- package/dist/okf/rules/GRAF111.md +11 -0
- package/dist/okf/rules/GRAF112.md +16 -0
- package/dist/okf/rules/GRAF113.md +16 -0
- package/dist/okf/rules/GRAF114.md +11 -0
- package/dist/okf/rules/GRAF115.md +11 -0
- package/dist/okf/types/AdhocVariable.md +9 -0
- package/dist/okf/types/AlertListPanel.md +9 -0
- package/dist/okf/types/AlertQuery.md +9 -0
- package/dist/okf/types/AlertRule.md +9 -0
- package/dist/okf/types/AlertRuleGroup.md +9 -0
- package/dist/okf/types/AzureMonitorQuery.md +9 -0
- package/dist/okf/types/BarChartPanel.md +9 -0
- package/dist/okf/types/BarGaugePanel.md +9 -0
- package/dist/okf/types/BigQueryQuery.md +9 -0
- package/dist/okf/types/CanvasPanel.md +9 -0
- package/dist/okf/types/ClassicConditionsExpression.md +9 -0
- package/dist/okf/types/CloudMonitoringQuery.md +9 -0
- package/dist/okf/types/CloudWatchQuery.md +9 -0
- package/dist/okf/types/ContactPoint.md +14 -0
- package/dist/okf/types/Dashboard.md +2 -1
- package/dist/okf/types/Datasource.md +3 -2
- package/dist/okf/types/DatasourceProvisioning.md +9 -0
- package/dist/okf/types/ElasticsearchQuery.md +9 -0
- package/dist/okf/types/ExternalDatasource.md +15 -0
- package/dist/okf/types/FlameGraphPanel.md +9 -0
- package/dist/okf/types/Folder.md +9 -0
- package/dist/okf/types/GeomapPanel.md +9 -0
- package/dist/okf/types/GroupByVariable.md +9 -0
- package/dist/okf/types/HistogramPanel.md +9 -0
- package/dist/okf/types/MSSQLQuery.md +9 -0
- package/dist/okf/types/MathExpression.md +9 -0
- package/dist/okf/types/MuteTiming.md +13 -0
- package/dist/okf/types/MySQLQuery.md +9 -0
- package/dist/okf/types/NodeGraphPanel.md +9 -0
- package/dist/okf/types/NotificationPolicy.md +9 -0
- package/dist/okf/types/NotificationTemplate.md +9 -0
- package/dist/okf/types/PieChartPanel.md +9 -0
- package/dist/okf/types/PostgresQuery.md +9 -0
- package/dist/okf/types/PyroscopeQuery.md +9 -0
- package/dist/okf/types/ReduceExpression.md +9 -0
- package/dist/okf/types/ResampleExpression.md +9 -0
- package/dist/okf/types/SqlExpression.md +9 -0
- package/dist/okf/types/StateTimelinePanel.md +9 -0
- package/dist/okf/types/StatusHistoryPanel.md +9 -0
- package/dist/okf/types/SwitchVariable.md +9 -0
- package/dist/okf/types/ThresholdExpression.md +9 -0
- package/dist/okf/types/TrendPanel.md +9 -0
- package/dist/okf/types/XYChartPanel.md +9 -0
- package/dist/op/activities/grafana-apply.d.ts +86 -0
- package/dist/op/activities/grafana-apply.d.ts.map +1 -0
- package/dist/op/activities/index.d.ts +9 -0
- package/dist/op/activities/index.d.ts.map +1 -0
- package/dist/op/builders.d.ts +24 -0
- package/dist/op/builders.d.ts.map +1 -0
- package/dist/ownership.d.ts +78 -0
- package/dist/ownership.d.ts.map +1 -0
- package/dist/panel-options.d.ts +65 -0
- package/dist/panel-options.d.ts.map +1 -0
- package/dist/panels.d.ts +46 -9
- package/dist/panels.d.ts.map +1 -1
- package/dist/pin.d.ts +29 -7
- package/dist/pin.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/promql-check.d.ts +51 -0
- package/dist/promql-check.d.ts.map +1 -0
- package/dist/query-models.d.ts +95 -0
- package/dist/query-models.d.ts.map +1 -0
- package/dist/query.d.ts +116 -18
- package/dist/query.d.ts.map +1 -1
- package/dist/rules/graf101.ts +3 -3
- package/dist/rules/graf102.ts +1 -1
- package/dist/rules/graf104.ts +3 -3
- package/dist/rules/graf106.ts +3 -3
- package/dist/rules/graf107.ts +1 -1
- package/dist/rules/graf108.ts +17 -0
- package/dist/rules/graf109.ts +17 -0
- package/dist/rules/graf110.ts +17 -0
- package/dist/rules/graf111.ts +17 -0
- package/dist/rules/graf112.ts +17 -0
- package/dist/rules/graf113.ts +17 -0
- package/dist/rules/graf114.ts +17 -0
- package/dist/rules/graf115.ts +17 -0
- package/dist/rules/grafana-helpers.ts +27 -10
- package/dist/rules/literal-secret.ts +60 -6
- package/dist/schema/azuremonitor.gen.d.ts +354 -0
- package/dist/schema/azuremonitor.gen.d.ts.map +1 -0
- package/dist/schema/barchart.gen.d.ts +198 -0
- package/dist/schema/barchart.gen.d.ts.map +1 -0
- package/dist/schema/bargauge.gen.d.ts +97 -0
- package/dist/schema/bargauge.gen.d.ts.map +1 -0
- package/dist/schema/bigquery.gen.d.ts +93 -0
- package/dist/schema/bigquery.gen.d.ts.map +1 -0
- package/dist/schema/canvas.gen.d.ts +152 -0
- package/dist/schema/canvas.gen.d.ts.map +1 -0
- package/dist/schema/cloudwatch.gen.d.ts +394 -0
- package/dist/schema/cloudwatch.gen.d.ts.map +1 -0
- package/dist/schema/dashboard.gen.d.ts +196 -21
- package/dist/schema/dashboard.gen.d.ts.map +1 -1
- package/dist/schema/elasticsearch.gen.d.ts +444 -0
- package/dist/schema/elasticsearch.gen.d.ts.map +1 -0
- package/dist/schema/expr.gen.d.ts +606 -0
- package/dist/schema/expr.gen.d.ts.map +1 -0
- package/dist/schema/gauge.gen.d.ts.map +1 -1
- package/dist/schema/geomap.gen.d.ts +100 -0
- package/dist/schema/geomap.gen.d.ts.map +1 -0
- package/dist/schema/googlecloudmonitoring.gen.d.ts +312 -0
- package/dist/schema/googlecloudmonitoring.gen.d.ts.map +1 -0
- package/dist/schema/grafanapyroscope.gen.d.ts +60 -0
- package/dist/schema/grafanapyroscope.gen.d.ts.map +1 -0
- package/dist/schema/heatmap.gen.d.ts.map +1 -1
- package/dist/schema/histogram.gen.d.ts +132 -0
- package/dist/schema/histogram.gen.d.ts.map +1 -0
- package/dist/schema/index.d.ts +18 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/logs.gen.d.ts +1 -0
- package/dist/schema/logs.gen.d.ts.map +1 -1
- package/dist/schema/loki.gen.d.ts.map +1 -1
- package/dist/schema/nodegraph.gen.d.ts +49 -0
- package/dist/schema/nodegraph.gen.d.ts.map +1 -0
- package/dist/schema/piechart.gen.d.ts +127 -0
- package/dist/schema/piechart.gen.d.ts.map +1 -0
- package/dist/schema/prometheus.gen.d.ts.map +1 -1
- package/dist/schema/stat.gen.d.ts.map +1 -1
- package/dist/schema/statetimeline.gen.d.ts +124 -0
- package/dist/schema/statetimeline.gen.d.ts.map +1 -0
- package/dist/schema/statushistory.gen.d.ts +114 -0
- package/dist/schema/statushistory.gen.d.ts.map +1 -0
- package/dist/schema/table.gen.d.ts +35 -3
- package/dist/schema/table.gen.d.ts.map +1 -1
- package/dist/schema/tempo.gen.d.ts.map +1 -1
- package/dist/schema/text.gen.d.ts.map +1 -1
- package/dist/schema/timeseries.gen.d.ts +5 -1
- package/dist/schema/timeseries.gen.d.ts.map +1 -1
- package/dist/schema/trend.gen.d.ts +180 -0
- package/dist/schema/trend.gen.d.ts.map +1 -0
- package/dist/schema/xychart.gen.d.ts +145 -0
- package/dist/schema/xychart.gen.d.ts.map +1 -0
- package/dist/schema-validate.d.ts +39 -4
- package/dist/schema-validate.d.ts.map +1 -1
- package/dist/serializer.d.ts +11 -3
- package/dist/serializer.d.ts.map +1 -1
- package/dist/skill-defs.d.ts.map +1 -1
- package/dist/skills/chant-grafana-alerting.md +49 -0
- package/dist/skills/chant-grafana-operations.md +108 -0
- package/dist/skills/chant-grafana-provisioning.md +3 -3
- package/dist/skills/chant-grafana.md +15 -8
- package/dist/spec/fetch-units-cli.d.ts +3 -0
- package/dist/spec/fetch-units-cli.d.ts.map +1 -0
- package/dist/spec/overlay.d.ts +43 -0
- package/dist/spec/overlay.d.ts.map +1 -0
- package/dist/spec/schemas.d.ts +21 -13
- package/dist/spec/schemas.d.ts.map +1 -1
- package/dist/spec/schemas.gen.d.ts +3 -0
- package/dist/spec/schemas.gen.d.ts.map +1 -0
- package/dist/spec/units.d.ts +35 -0
- package/dist/spec/units.d.ts.map +1 -0
- package/dist/spec/units.gen.d.ts +2 -0
- package/dist/spec/units.gen.d.ts.map +1 -0
- package/dist/transformations.d.ts +459 -0
- package/dist/transformations.d.ts.map +1 -0
- package/dist/util.d.ts +6 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/validate-alerting.d.ts +65 -0
- package/dist/validate-alerting.d.ts.map +1 -0
- package/dist/validate-output.d.ts +62 -9
- package/dist/validate-output.d.ts.map +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validation.d.ts +14 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/variables.d.ts +109 -7
- package/dist/variables.d.ts.map +1 -1
- package/package.json +12 -4
- package/src/actions/actions.test.ts +24 -0
- package/src/actions/grafana.ts +40 -0
- package/src/actions/index.ts +1 -0
- package/src/alerting-build.ts +376 -0
- package/src/alerting.e2e.test.ts +212 -0
- package/src/alerting.test.ts +272 -0
- package/src/alerting.ts +435 -0
- package/src/annotations.ts +84 -0
- package/src/api/apply.test.ts +256 -0
- package/src/api/apply.ts +394 -0
- package/src/api/bind.ts +58 -0
- package/src/api/client.ts +148 -0
- package/src/api/converge.ts +63 -0
- package/src/api/dashboards.ts +247 -0
- package/src/api/datasources.ts +33 -0
- package/src/api/fake-grafana-writes.ts +201 -0
- package/src/api/fake-grafana.ts +190 -0
- package/src/api/folders.ts +339 -0
- package/src/api/library-panels.ts +101 -0
- package/src/build.test.ts +351 -10
- package/src/build.ts +294 -55
- package/src/catalog.ts +104 -2
- package/src/codegen/docs.ts +50 -10
- package/src/codegen/generate.ts +27 -1
- package/src/codegen/schema-types.ts +16 -6
- package/src/composites/agent-dashboard.ts +6 -3
- package/src/composites/catalog.test.ts +2 -2
- package/src/composites/catalog.ts +82 -0
- package/src/composites/composites.test.ts +73 -9
- package/src/composites/index.ts +4 -2
- package/src/composites/queries.e2e.test.ts +374 -0
- package/src/composites/red-dashboard.ts +83 -12
- package/src/composites/shared.ts +14 -2
- package/src/composites/slo-alert-rules.ts +149 -0
- package/src/config.test.ts +61 -0
- package/src/config.ts +138 -0
- package/src/contact-point-secrets.ts +63 -0
- package/src/dashboard.ts +68 -9
- package/src/datasource-refs.test.ts +56 -0
- package/src/datasource-refs.ts +213 -0
- package/src/datasource-settings.test.ts +106 -0
- package/src/datasource-settings.ts +941 -0
- package/src/datasource.ts +123 -11
- package/src/deep-observe-hooks.ts +267 -0
- package/src/deep-observe.test.ts +311 -0
- package/src/deep-observe.ts +187 -0
- package/src/describe-resources.test.ts +271 -0
- package/src/describe-resources.ts +244 -0
- package/src/detect.ts +82 -5
- package/src/export-resources.test.ts +129 -0
- package/src/export-resources.ts +84 -0
- package/src/folder.ts +118 -0
- package/src/generated/lexicon-grafana.json +205 -0
- package/src/import/alerting-roundtrip.test.ts +161 -0
- package/src/import/alerting.ts +500 -0
- package/src/import/edits.ts +95 -0
- package/src/import/embedded.test.ts +45 -0
- package/src/import/embedded.ts +47 -0
- package/src/import/generated-types.e2e.test.ts +130 -0
- package/src/import/generator.test.ts +210 -0
- package/src/import/generator.ts +463 -0
- package/src/import/live-export.ts +264 -0
- package/src/import/mappings.ts +336 -0
- package/src/import/model.ts +117 -0
- package/src/import/normalize-alerting.ts +101 -0
- package/src/import/normalize.test.ts +117 -0
- package/src/import/normalize.ts +393 -0
- package/src/import/parser.test.ts +516 -0
- package/src/import/parser.ts +1387 -0
- package/src/import/report.ts +62 -0
- package/src/import/roundtrip.test.ts +563 -0
- package/src/import/testdata/fixtures.ts +137 -0
- package/src/import/v2.test.ts +292 -0
- package/src/import/v2.ts +804 -0
- package/src/import.e2e.test.ts +31 -84
- package/src/import.test.ts +9 -3
- package/src/index.ts +308 -14
- package/src/init-templates.test.ts +74 -0
- package/src/init-templates.ts +349 -0
- package/src/k8s.test.ts +98 -0
- package/src/k8s.ts +197 -0
- package/src/lint/audit-catalog.ts +68 -3
- package/src/lint/core-lint.test.ts +43 -0
- package/src/lint/post-synth/graf101.ts +3 -3
- package/src/lint/post-synth/graf102.ts +1 -1
- package/src/lint/post-synth/graf104.ts +3 -3
- package/src/lint/post-synth/graf106.ts +3 -3
- package/src/lint/post-synth/graf107.ts +1 -1
- package/src/lint/post-synth/graf108.ts +17 -0
- package/src/lint/post-synth/graf109.ts +17 -0
- package/src/lint/post-synth/graf110.ts +17 -0
- package/src/lint/post-synth/graf111.ts +17 -0
- package/src/lint/post-synth/graf112.ts +17 -0
- package/src/lint/post-synth/graf113.ts +17 -0
- package/src/lint/post-synth/graf114.ts +17 -0
- package/src/lint/post-synth/graf115.ts +17 -0
- package/src/lint/post-synth/grafana-helpers.ts +27 -10
- package/src/lint/post-synth/index.ts +16 -0
- package/src/lint/post-synth/post-synth.test.ts +333 -12
- package/src/lint/rules/literal-secret.ts +60 -6
- package/src/lint/rules/rules.test.ts +27 -0
- package/src/load-cost.test.ts +35 -0
- package/src/lsp/completions.test.ts +5 -0
- package/src/lsp/hover.test.ts +7 -0
- package/src/lsp/hover.ts +8 -1
- package/src/members.ts +68 -0
- package/src/observe.e2e.test.ts +255 -0
- package/src/op/activities/grafana-apply.e2e.test.ts +184 -0
- package/src/op/activities/grafana-apply.test.ts +243 -0
- package/src/op/activities/grafana-apply.ts +197 -0
- package/src/op/activities/index.ts +8 -0
- package/src/op/builders.test.ts +40 -0
- package/src/op/builders.ts +34 -0
- package/src/ownership.ts +122 -0
- package/src/panel-options.ts +66 -0
- package/src/panels.test.ts +53 -0
- package/src/panels.ts +148 -10
- package/src/pin.ts +69 -6
- package/src/plugin.test.ts +12 -2
- package/src/plugin.ts +75 -0
- package/src/promql-check.test.ts +108 -0
- package/src/promql-check.ts +193 -0
- package/src/query-models.ts +94 -0
- package/src/query.test.ts +166 -0
- package/src/query.ts +190 -20
- package/src/schema/azuremonitor.gen.ts +381 -0
- package/src/schema/barchart.gen.ts +221 -0
- package/src/schema/bargauge.gen.ts +111 -0
- package/src/schema/bigquery.gen.ts +110 -0
- package/src/schema/canvas.gen.ts +176 -0
- package/src/schema/cloudwatch.gen.ts +423 -0
- package/src/schema/dashboard.gen.ts +206 -22
- package/src/schema/elasticsearch.gen.ts +508 -0
- package/src/schema/expr.gen.ts +618 -0
- package/src/schema/gauge.gen.ts +2 -1
- package/src/schema/geomap.gen.ts +112 -0
- package/src/schema/googlecloudmonitoring.gen.ts +330 -0
- package/src/schema/grafanapyroscope.gen.ts +66 -0
- package/src/schema/heatmap.gen.ts +2 -1
- package/src/schema/histogram.gen.ts +151 -0
- package/src/schema/index.ts +18 -0
- package/src/schema/logs.gen.ts +3 -1
- package/src/schema/loki.gen.ts +2 -1
- package/src/schema/nodegraph.gen.ts +58 -0
- package/src/schema/piechart.gen.ts +146 -0
- package/src/schema/prometheus.gen.ts +2 -1
- package/src/schema/stat.gen.ts +2 -1
- package/src/schema/statetimeline.gen.ts +143 -0
- package/src/schema/statushistory.gen.ts +132 -0
- package/src/schema/table.gen.ts +41 -4
- package/src/schema/tempo.gen.ts +2 -1
- package/src/schema/text.gen.ts +2 -1
- package/src/schema/timeseries.gen.ts +7 -2
- package/src/schema/trend.gen.ts +208 -0
- package/src/schema/xychart.gen.ts +167 -0
- package/src/schema-overlay.test.ts +282 -0
- package/src/schema-validate.ts +199 -57
- package/src/schema.test.ts +4 -2
- package/src/serializer.test.ts +13 -1
- package/src/serializer.ts +11 -3
- package/src/skill-defs.ts +34 -0
- package/src/skills/chant-grafana-alerting.md +49 -0
- package/src/skills/chant-grafana-operations.md +108 -0
- package/src/skills/chant-grafana-provisioning.md +3 -3
- package/src/skills/chant-grafana.md +15 -8
- package/src/spec/fetch-cli.ts +3 -3
- package/src/spec/fetch-units-cli.ts +37 -0
- package/src/spec/overlay/canvas.overlay.json +142 -0
- package/src/spec/overlay/dashboard.overlay.json +378 -0
- package/src/spec/overlay/expr.overlay.json +14 -0
- package/src/spec/overlay/geomap.overlay.json +35 -0
- package/src/spec/overlay/logs.overlay.json +14 -0
- package/src/spec/overlay/nodegraph.overlay.json +31 -0
- package/src/spec/overlay/piechart.overlay.json +17 -0
- package/src/spec/overlay/table.overlay.json +103 -0
- package/src/spec/overlay/timeseries.overlay.json +21 -0
- package/src/spec/overlay/trend.overlay.json +17 -0
- package/src/spec/overlay/xychart.overlay.json +16 -0
- package/src/spec/overlay.ts +105 -0
- package/src/spec/schemas/azuremonitor.jsonschema.json +679 -0
- package/src/spec/schemas/barchart.jsonschema.json +419 -0
- package/src/spec/schemas/bargauge.jsonschema.json +224 -0
- package/src/spec/schemas/bigquery.jsonschema.json +290 -0
- package/src/spec/schemas/canvas.jsonschema.json +356 -0
- package/src/spec/schemas/cloudwatch.jsonschema.json +721 -0
- package/src/spec/schemas/dashboardv2.jsonschema.json +3387 -0
- package/src/spec/schemas/elasticsearch.jsonschema.json +1695 -0
- package/src/spec/schemas/expr.jsonschema.json +987 -0
- package/src/spec/schemas/geomap.jsonschema.json +220 -0
- package/src/spec/schemas/googlecloudmonitoring.jsonschema.json +488 -0
- package/src/spec/schemas/grafanapyroscope.jsonschema.json +93 -0
- package/src/spec/schemas/histogram.jsonschema.json +308 -0
- package/src/spec/schemas/nodegraph.jsonschema.json +77 -0
- package/src/spec/schemas/piechart.jsonschema.json +275 -0
- package/src/spec/schemas/statetimeline.jsonschema.json +324 -0
- package/src/spec/schemas/statushistory.jsonschema.json +292 -0
- package/src/spec/schemas/trend.jsonschema.json +449 -0
- package/src/spec/schemas/xychart.jsonschema.json +428 -0
- package/src/spec/schemas.gen.ts +40 -0
- package/src/spec/schemas.ts +30 -16
- package/src/spec/units.gen.ts +281 -0
- package/src/spec/units.ts +77 -0
- package/src/transformations.test.ts +65 -0
- package/src/transformations.ts +574 -0
- package/src/util.ts +8 -0
- package/src/validate-alerting.test.ts +255 -0
- package/src/validate-alerting.ts +430 -0
- package/src/validate-output.ts +427 -104
- package/src/validate.ts +28 -0
- package/src/validation.ts +27 -0
- package/src/variables.ts +120 -8
package/src/schema/loki.gen.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
-
// src/spec/schemas/loki.jsonschema.json (see src/pin.ts)
|
|
2
|
+
// src/spec/schemas/loki.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
export type QueryEditorMode = "code" | "builder";
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
+
// src/spec/schemas/nodegraph.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export interface ArcOption {
|
|
7
|
+
/**
|
|
8
|
+
* Field from which to get the value. Values should be less than 1, representing fraction of a circle.
|
|
9
|
+
*/
|
|
10
|
+
field?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The color of the arc.
|
|
13
|
+
*/
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface NodeOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Unit for the main stat to override what ever is set in the data frame.
|
|
20
|
+
*/
|
|
21
|
+
mainStatUnit?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Unit for the secondary stat to override what ever is set in the data frame.
|
|
24
|
+
*/
|
|
25
|
+
secondaryStatUnit?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Define which fields are shown as part of the node arc (colored circle around the node).
|
|
28
|
+
*/
|
|
29
|
+
arcs?: ArcOption[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface EdgeOptions {
|
|
33
|
+
/**
|
|
34
|
+
* Unit for the main stat to override what ever is set in the data frame.
|
|
35
|
+
*/
|
|
36
|
+
mainStatUnit?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Unit for the secondary stat to override what ever is set in the data frame.
|
|
39
|
+
*/
|
|
40
|
+
secondaryStatUnit?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type ZoomMode = "cooperative" | "greedy";
|
|
44
|
+
|
|
45
|
+
export interface Options {
|
|
46
|
+
nodes?: NodeOptions;
|
|
47
|
+
edges?: EdgeOptions;
|
|
48
|
+
/**
|
|
49
|
+
* How to handle zoom/scroll events in the node graph
|
|
50
|
+
*/
|
|
51
|
+
zoomMode?: ZoomMode;
|
|
52
|
+
/**
|
|
53
|
+
* How to layout the nodes in the node graph
|
|
54
|
+
*/
|
|
55
|
+
layoutAlgorithm?: LayoutAlgorithm;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type LayoutAlgorithm = "layered" | "force" | "grid";
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
+
// src/spec/schemas/piechart.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Select the pie chart display style.
|
|
8
|
+
*/
|
|
9
|
+
export type PieChartType = "pie" | "donut";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Select labels to display on the pie chart.
|
|
13
|
+
* - Name - The series or field name.
|
|
14
|
+
* - Percent - The percentage of the whole.
|
|
15
|
+
* - Value - The raw numerical value.
|
|
16
|
+
*/
|
|
17
|
+
export type PieChartLabels = "name" | "value" | "percent";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Select values to display in the legend.
|
|
21
|
+
* - Percent: The percentage of the whole.
|
|
22
|
+
* - Value: The raw numerical value.
|
|
23
|
+
*/
|
|
24
|
+
export type PieChartLegendValues = "value" | "percent";
|
|
25
|
+
|
|
26
|
+
export interface PieChartLegendOptions {
|
|
27
|
+
values: PieChartLegendValues[];
|
|
28
|
+
displayMode: LegendDisplayMode;
|
|
29
|
+
placement: LegendPlacement;
|
|
30
|
+
showLegend: boolean;
|
|
31
|
+
asTable?: boolean;
|
|
32
|
+
isVisible?: boolean;
|
|
33
|
+
sortBy?: string;
|
|
34
|
+
sortDesc?: boolean;
|
|
35
|
+
width?: number;
|
|
36
|
+
calcs: string[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface Options {
|
|
40
|
+
pieType: PieChartType;
|
|
41
|
+
displayLabels?: PieChartLabels[] | null;
|
|
42
|
+
tooltip: VizTooltipOptions;
|
|
43
|
+
reduceOptions: ReduceDataOptions;
|
|
44
|
+
text?: VizTextDisplayOptions;
|
|
45
|
+
legend: PieChartLegendOptions;
|
|
46
|
+
orientation: VizOrientation;
|
|
47
|
+
/**
|
|
48
|
+
* How slices are ordered.
|
|
49
|
+
*/
|
|
50
|
+
sort?: SortOrder;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type FieldConfig = HideableFieldConfig;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* TODO docs
|
|
57
|
+
* Note: "hidden" needs to remain as an option for plugins compatibility
|
|
58
|
+
*/
|
|
59
|
+
export type LegendDisplayMode = "list" | "table" | "hidden";
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* TODO docs
|
|
63
|
+
*/
|
|
64
|
+
export type LegendPlacement = "bottom" | "right";
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* TODO docs
|
|
68
|
+
*/
|
|
69
|
+
export interface VizTooltipOptions {
|
|
70
|
+
mode: TooltipDisplayMode;
|
|
71
|
+
sort: SortOrder;
|
|
72
|
+
maxWidth?: number;
|
|
73
|
+
maxHeight?: number;
|
|
74
|
+
hideZeros?: boolean;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* TODO docs
|
|
79
|
+
*/
|
|
80
|
+
export interface ReduceDataOptions {
|
|
81
|
+
/**
|
|
82
|
+
* If true show each row value
|
|
83
|
+
*/
|
|
84
|
+
values?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* if showing all values limit
|
|
87
|
+
*/
|
|
88
|
+
limit?: number;
|
|
89
|
+
/**
|
|
90
|
+
* When !values, pick one value for the whole field
|
|
91
|
+
*/
|
|
92
|
+
calcs: string[];
|
|
93
|
+
/**
|
|
94
|
+
* Which fields to show. By default this is only numeric fields
|
|
95
|
+
*/
|
|
96
|
+
fields?: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* TODO docs
|
|
101
|
+
*/
|
|
102
|
+
export interface VizTextDisplayOptions {
|
|
103
|
+
/**
|
|
104
|
+
* Explicit title text size
|
|
105
|
+
*/
|
|
106
|
+
titleSize?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Explicit value text size
|
|
109
|
+
*/
|
|
110
|
+
valueSize?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Explicit percent text size
|
|
113
|
+
*/
|
|
114
|
+
percentSize?: number;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* TODO docs
|
|
119
|
+
*/
|
|
120
|
+
export type VizOrientation = "auto" | "vertical" | "horizontal";
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* TODO docs
|
|
124
|
+
*/
|
|
125
|
+
export interface HideableFieldConfig {
|
|
126
|
+
hideFrom?: HideSeriesConfig;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* TODO docs
|
|
131
|
+
*/
|
|
132
|
+
export type TooltipDisplayMode = "single" | "multi" | "none";
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* TODO docs
|
|
136
|
+
*/
|
|
137
|
+
export type SortOrder = "asc" | "desc" | "none";
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* TODO docs
|
|
141
|
+
*/
|
|
142
|
+
export interface HideSeriesConfig {
|
|
143
|
+
tooltip: boolean;
|
|
144
|
+
legend: boolean;
|
|
145
|
+
viz: boolean;
|
|
146
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
-
// src/spec/schemas/prometheus.jsonschema.json (see src/pin.ts)
|
|
2
|
+
// src/spec/schemas/prometheus.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
export interface AdhocFilters {
|
package/src/schema/stat.gen.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
-
// src/spec/schemas/stat.jsonschema.json (see src/pin.ts)
|
|
2
|
+
// src/spec/schemas/stat.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
export interface Options {
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
+
// src/spec/schemas/statetimeline.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export interface Options {
|
|
7
|
+
/**
|
|
8
|
+
* Show timeline values on chart
|
|
9
|
+
*/
|
|
10
|
+
showValue: VisibilityMode;
|
|
11
|
+
/**
|
|
12
|
+
* Controls the row height
|
|
13
|
+
*/
|
|
14
|
+
rowHeight: number;
|
|
15
|
+
/**
|
|
16
|
+
* Merge equal consecutive values
|
|
17
|
+
*/
|
|
18
|
+
mergeValues?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Controls value alignment on the timelines
|
|
21
|
+
*/
|
|
22
|
+
alignValue?: TimelineValueAlignment;
|
|
23
|
+
legend: VizLegendOptions;
|
|
24
|
+
tooltip: VizTooltipOptions;
|
|
25
|
+
timezone?: TimeZone[];
|
|
26
|
+
/**
|
|
27
|
+
* Enables pagination when > 0
|
|
28
|
+
*/
|
|
29
|
+
perPage?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface FieldConfig {
|
|
33
|
+
lineWidth?: number;
|
|
34
|
+
axisPlacement?: AxisPlacement;
|
|
35
|
+
axisColorMode?: AxisColorMode;
|
|
36
|
+
axisLabel?: string;
|
|
37
|
+
axisWidth?: number;
|
|
38
|
+
axisSoftMin?: number;
|
|
39
|
+
axisSoftMax?: number;
|
|
40
|
+
axisGridShow?: boolean;
|
|
41
|
+
scaleDistribution?: ScaleDistributionConfig;
|
|
42
|
+
axisCenteredZero?: boolean;
|
|
43
|
+
hideFrom?: HideSeriesConfig;
|
|
44
|
+
fillOpacity?: number;
|
|
45
|
+
axisBorderShow?: boolean;
|
|
46
|
+
spanNulls?: boolean | number;
|
|
47
|
+
insertNulls?: boolean | number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* TODO docs
|
|
52
|
+
*/
|
|
53
|
+
export type VisibilityMode = "auto" | "never" | "always";
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Controls the value alignment in the TimelineChart component
|
|
57
|
+
*/
|
|
58
|
+
export type TimelineValueAlignment = "center" | "left" | "right";
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* TODO docs
|
|
62
|
+
*/
|
|
63
|
+
export interface VizLegendOptions {
|
|
64
|
+
displayMode: LegendDisplayMode;
|
|
65
|
+
placement: LegendPlacement;
|
|
66
|
+
showLegend: boolean;
|
|
67
|
+
asTable?: boolean;
|
|
68
|
+
isVisible?: boolean;
|
|
69
|
+
sortBy?: string;
|
|
70
|
+
sortDesc?: boolean;
|
|
71
|
+
width?: number;
|
|
72
|
+
calcs: string[];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* TODO docs
|
|
77
|
+
*/
|
|
78
|
+
export interface VizTooltipOptions {
|
|
79
|
+
mode: TooltipDisplayMode;
|
|
80
|
+
sort: SortOrder;
|
|
81
|
+
maxWidth?: number;
|
|
82
|
+
maxHeight?: number;
|
|
83
|
+
hideZeros?: boolean;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* A specific timezone from https://en.wikipedia.org/wiki/Tz_database
|
|
88
|
+
*/
|
|
89
|
+
export type TimeZone = string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* TODO docs
|
|
93
|
+
*/
|
|
94
|
+
export type AxisPlacement = "auto" | "top" | "right" | "bottom" | "left" | "hidden";
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* TODO docs
|
|
98
|
+
*/
|
|
99
|
+
export type AxisColorMode = "text" | "series";
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* TODO docs
|
|
103
|
+
*/
|
|
104
|
+
export interface ScaleDistributionConfig {
|
|
105
|
+
type: ScaleDistribution;
|
|
106
|
+
log?: number;
|
|
107
|
+
linearThreshold?: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* TODO docs
|
|
112
|
+
*/
|
|
113
|
+
export interface HideSeriesConfig {
|
|
114
|
+
tooltip: boolean;
|
|
115
|
+
legend: boolean;
|
|
116
|
+
viz: boolean;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* TODO docs
|
|
121
|
+
* Note: "hidden" needs to remain as an option for plugins compatibility
|
|
122
|
+
*/
|
|
123
|
+
export type LegendDisplayMode = "list" | "table" | "hidden";
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* TODO docs
|
|
127
|
+
*/
|
|
128
|
+
export type LegendPlacement = "bottom" | "right";
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* TODO docs
|
|
132
|
+
*/
|
|
133
|
+
export type TooltipDisplayMode = "single" | "multi" | "none";
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* TODO docs
|
|
137
|
+
*/
|
|
138
|
+
export type SortOrder = "asc" | "desc" | "none";
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* TODO docs
|
|
142
|
+
*/
|
|
143
|
+
export type ScaleDistribution = "linear" | "log" | "ordinal" | "symlog";
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
+
// src/spec/schemas/statushistory.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export interface Options {
|
|
7
|
+
/**
|
|
8
|
+
* Set the height of the rows
|
|
9
|
+
*/
|
|
10
|
+
rowHeight: number;
|
|
11
|
+
/**
|
|
12
|
+
* Show values on the columns
|
|
13
|
+
*/
|
|
14
|
+
showValue: VisibilityMode;
|
|
15
|
+
/**
|
|
16
|
+
* Controls the column width
|
|
17
|
+
*/
|
|
18
|
+
colWidth?: number;
|
|
19
|
+
legend: VizLegendOptions;
|
|
20
|
+
tooltip: VizTooltipOptions;
|
|
21
|
+
timezone?: TimeZone[];
|
|
22
|
+
/**
|
|
23
|
+
* Enables pagination when > 0
|
|
24
|
+
*/
|
|
25
|
+
perPage?: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface FieldConfig {
|
|
29
|
+
lineWidth?: number;
|
|
30
|
+
axisPlacement?: AxisPlacement;
|
|
31
|
+
axisColorMode?: AxisColorMode;
|
|
32
|
+
axisLabel?: string;
|
|
33
|
+
axisWidth?: number;
|
|
34
|
+
axisSoftMin?: number;
|
|
35
|
+
axisSoftMax?: number;
|
|
36
|
+
axisGridShow?: boolean;
|
|
37
|
+
scaleDistribution?: ScaleDistributionConfig;
|
|
38
|
+
axisCenteredZero?: boolean;
|
|
39
|
+
hideFrom?: HideSeriesConfig;
|
|
40
|
+
fillOpacity?: number;
|
|
41
|
+
axisBorderShow?: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* TODO docs
|
|
46
|
+
*/
|
|
47
|
+
export type VisibilityMode = "auto" | "never" | "always";
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* TODO docs
|
|
51
|
+
*/
|
|
52
|
+
export interface VizLegendOptions {
|
|
53
|
+
displayMode: LegendDisplayMode;
|
|
54
|
+
placement: LegendPlacement;
|
|
55
|
+
showLegend: boolean;
|
|
56
|
+
asTable?: boolean;
|
|
57
|
+
isVisible?: boolean;
|
|
58
|
+
sortBy?: string;
|
|
59
|
+
sortDesc?: boolean;
|
|
60
|
+
width?: number;
|
|
61
|
+
calcs: string[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* TODO docs
|
|
66
|
+
*/
|
|
67
|
+
export interface VizTooltipOptions {
|
|
68
|
+
mode: TooltipDisplayMode;
|
|
69
|
+
sort: SortOrder;
|
|
70
|
+
maxWidth?: number;
|
|
71
|
+
maxHeight?: number;
|
|
72
|
+
hideZeros?: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* A specific timezone from https://en.wikipedia.org/wiki/Tz_database
|
|
77
|
+
*/
|
|
78
|
+
export type TimeZone = string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* TODO docs
|
|
82
|
+
*/
|
|
83
|
+
export type AxisPlacement = "auto" | "top" | "right" | "bottom" | "left" | "hidden";
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* TODO docs
|
|
87
|
+
*/
|
|
88
|
+
export type AxisColorMode = "text" | "series";
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* TODO docs
|
|
92
|
+
*/
|
|
93
|
+
export interface ScaleDistributionConfig {
|
|
94
|
+
type: ScaleDistribution;
|
|
95
|
+
log?: number;
|
|
96
|
+
linearThreshold?: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* TODO docs
|
|
101
|
+
*/
|
|
102
|
+
export interface HideSeriesConfig {
|
|
103
|
+
tooltip: boolean;
|
|
104
|
+
legend: boolean;
|
|
105
|
+
viz: boolean;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* TODO docs
|
|
110
|
+
* Note: "hidden" needs to remain as an option for plugins compatibility
|
|
111
|
+
*/
|
|
112
|
+
export type LegendDisplayMode = "list" | "table" | "hidden";
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* TODO docs
|
|
116
|
+
*/
|
|
117
|
+
export type LegendPlacement = "bottom" | "right";
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* TODO docs
|
|
121
|
+
*/
|
|
122
|
+
export type TooltipDisplayMode = "single" | "multi" | "none";
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* TODO docs
|
|
126
|
+
*/
|
|
127
|
+
export type SortOrder = "asc" | "desc" | "none";
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* TODO docs
|
|
131
|
+
*/
|
|
132
|
+
export type ScaleDistribution = "linear" | "log" | "ordinal" | "symlog";
|
package/src/schema/table.gen.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
-
// src/spec/schemas/table.jsonschema.json (see src/pin.ts)
|
|
2
|
+
// src/spec/schemas/table.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
export interface Options {
|
|
@@ -87,6 +88,10 @@ export interface TableFieldOptions {
|
|
|
87
88
|
* Hides any header for a column, useful for columns that show some static content or buttons.
|
|
88
89
|
*/
|
|
89
90
|
hideHeader?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* options for the footer for this field
|
|
93
|
+
*/
|
|
94
|
+
footer?: TableFieldFooterOptions;
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
/**
|
|
@@ -101,13 +106,13 @@ export type FieldTextAlignment = "auto" | "left" | "right" | "center";
|
|
|
101
106
|
* The color-background-solid, gradient-gauge, and lcd-gauge
|
|
102
107
|
* modes are deprecated in favor of new cell subOptions
|
|
103
108
|
*/
|
|
104
|
-
export type TableCellDisplayMode = "auto" | "color-text" | "color-background" | "color-background-solid" | "gradient-gauge" | "lcd-gauge" | "json-view" | "basic" | "image" | "gauge" | "sparkline" | "data-links" | "custom" | "actions";
|
|
109
|
+
export type TableCellDisplayMode = "auto" | "color-text" | "color-background" | "color-background-solid" | "gradient-gauge" | "lcd-gauge" | "json-view" | "basic" | "image" | "gauge" | "sparkline" | "data-links" | "custom" | "actions" | "pill" | "markdown" | "geo";
|
|
105
110
|
|
|
106
111
|
/**
|
|
107
112
|
* Table cell options. Each cell has a display mode
|
|
108
113
|
* and other potential options for that display.
|
|
109
114
|
*/
|
|
110
|
-
export type TableCellOptions = TableAutoCellOptions | TableSparklineCellOptions | TableBarGaugeCellOptions | TableColoredBackgroundCellOptions | TableColorTextCellOptions | TableImageCellOptions | TableDataLinksCellOptions | TableActionsCellOptions | TableJsonViewCellOptions;
|
|
115
|
+
export type TableCellOptions = TableAutoCellOptions | TableSparklineCellOptions | TableBarGaugeCellOptions | TableColoredBackgroundCellOptions | TableColorTextCellOptions | TableImageCellOptions | TableDataLinksCellOptions | TableActionsCellOptions | TableJsonViewCellOptions | TablePillCellOptions | TableMarkdownCellOptions | TableGeoCellOptions;
|
|
111
116
|
|
|
112
117
|
/**
|
|
113
118
|
* Auto mode table cell options
|
|
@@ -250,7 +255,7 @@ export type LineInterpolation = "linear" | "smooth" | "stepBefore" | "stepAfter"
|
|
|
250
255
|
* TODO docs
|
|
251
256
|
*/
|
|
252
257
|
export interface LineStyle {
|
|
253
|
-
fill?: "solid" | "dash" | "dot" | "square";
|
|
258
|
+
fill?: "solid" | "dash" | "dot" | "square" | "accessible";
|
|
254
259
|
dash?: number[];
|
|
255
260
|
}
|
|
256
261
|
|
|
@@ -332,3 +337,35 @@ export type ScaleDistribution = "linear" | "log" | "ordinal" | "symlog";
|
|
|
332
337
|
* TODO docs
|
|
333
338
|
*/
|
|
334
339
|
export type StackingMode = "none" | "normal" | "percent";
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Pill cell options
|
|
343
|
+
*/
|
|
344
|
+
export interface TablePillCellOptions {
|
|
345
|
+
type: TableCellDisplayMode;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Markdown cell options
|
|
350
|
+
*/
|
|
351
|
+
export interface TableMarkdownCellOptions {
|
|
352
|
+
type: TableCellDisplayMode;
|
|
353
|
+
dynamicHeight?: boolean;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Geo cell options
|
|
358
|
+
*/
|
|
359
|
+
export interface TableGeoCellOptions {
|
|
360
|
+
type: TableCellDisplayMode;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* The footer of one field (TableFooterOptions in the CUE; renamed here because the vendored schema already has a panel-level TableFooterOptions)
|
|
365
|
+
*/
|
|
366
|
+
export interface TableFieldFooterOptions {
|
|
367
|
+
/**
|
|
368
|
+
* footer reducers to apply to this field
|
|
369
|
+
*/
|
|
370
|
+
reducers?: string[];
|
|
371
|
+
}
|
package/src/schema/tempo.gen.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
-
// src/spec/schemas/tempo.jsonschema.json (see src/pin.ts)
|
|
2
|
+
// src/spec/schemas/tempo.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
export interface Dataquery {
|
package/src/schema/text.gen.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
-
// src/spec/schemas/text.jsonschema.json (see src/pin.ts)
|
|
2
|
+
// src/spec/schemas/text.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
export type TextMode = "html" | "markdown" | "code";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by chant generate from the vendored Grafana schema
|
|
2
|
-
// src/spec/schemas/timeseries.jsonschema.json (see src/pin.ts)
|
|
2
|
+
// src/spec/schemas/timeseries.jsonschema.json (see src/pin.ts) and its correction
|
|
3
|
+
// overlay in src/spec/overlay/ (see src/spec/overlay.ts). DO NOT EDIT.
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
export interface Options {
|
|
@@ -88,6 +89,10 @@ export interface GraphFieldConfig {
|
|
|
88
89
|
pointSymbol?: string;
|
|
89
90
|
axisBorderShow?: boolean;
|
|
90
91
|
barMaxWidth?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Show point values on the graph.
|
|
94
|
+
*/
|
|
95
|
+
showValues?: boolean;
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
/**
|
|
@@ -142,7 +147,7 @@ export type LineInterpolation = "linear" | "smooth" | "stepBefore" | "stepAfter"
|
|
|
142
147
|
* TODO docs
|
|
143
148
|
*/
|
|
144
149
|
export interface LineStyle {
|
|
145
|
-
fill?: "solid" | "dash" | "dot" | "square";
|
|
150
|
+
fill?: "solid" | "dash" | "dot" | "square" | "accessible";
|
|
146
151
|
dash?: number[];
|
|
147
152
|
}
|
|
148
153
|
|